- Write a program that swaps the values of two variables.
- Write a program that calculates the area of a rectangle given its length and width.
- Write a program that converts temperature from Fahrenheit to Celsius.
- Write a program that calculates the volume of a sphere given its radius.
- Write a program that finds the average of three numbers.
- Write a program that determines if a number is even or odd.
- Write a program that finds the maximum of three numbers.
- Write a program that determines if a year is a leap year or not.
- Write a program that determines if a number is positive, negative, or zero.
- Write a program that calculates the grade based on a given percentage.
- Write a program that prints the first
n
natural numbers. - Write a program that calculates the factorial of a number.
- Write a program that generates a Fibonacci sequence of length
n
. - Write a program that checks if a given number is prime or not.
- Write a program that prints the multiplication table of a given number.
- Write a program that finds the sum of all even numbers between 1 and
n
. - Write a program that reverses a given number.
- Write a program that checks if a given string, is a palindrome.
- Write a program that generates a random number and allows the user to guess it.
- Write a program that finds the greatest common divisor (GCD) of two numbers.