Professional Documents
Culture Documents
programming contest 2024
programming contest 2024
Practice Sheet
1. Hello World: Write a program that prints "Hello, World!" to the console.
2. Sum of Two Numbers: Given two numbers, calculate their sum.
3. Leap Year: Write a program to check if a given year is a leap year.
4. Simple Calculator: Create a simple calculator that can add, subtract, multiply, and
divide two numbers.
2. Conditional Statements
3. Loops
1. Array Sum: Given an array of integers, find the sum of its elements.
2. Reverse Array: Reverse the elements of an array.
3. Palindrome String: Check if a given string is a palindrome.
4. Character Frequency: Count the frequency of each character in a string.
5. Functions
1. GCD and LCM: Write functions to compute the greatest common divisor (GCD) and
least common multiple (LCM) of two numbers.
2. Prime Check Function: Write a function to check if a number is prime.
3. Fibonacci Using Recursion: Implement a recursive function to generate Fibonacci
numbers.
01743028754(WhatsApp)