C Programming Exercises
- Write a program to print "Hello, World!" on the screen.
- Write a program to add two numbers entered by the user.
- Write a program to find the largest of three numbers.
- Write a program to check whether a number is even or odd.
- Write a program to find the factorial of a given number.
- Write a program to print all natural numbers from 1 to N.
- Write a program to calculate the sum of all numbers from 1 to N.
- Write a program to print the multiplication table of a given number.
- Write a program to check if a given number is prime or not.
- Write a program to find the reverse of a number.
- Write a program to check if a number is a palindrome.
- Write a program to calculate the simple interest given principal, rate, and time.
- Write a program to find the largest element in an array.
- Write a program to calculate the average of elements in an array.
- Write a program to copy one string into another.
- Write a program to count the number of vowels in a string.
- Write a program to print the Fibonacci series up to N terms.
- Write a program to swap two numbers without using a temporary variable.
- Write a program to convert temperature from Celsius to Fahrenheit.
- Write a program to find the GCD (Greatest Common Divisor) of two numbers.
- Write a program to check if a year is a leap year.
- Write a program to find the sum of digits of a number.
- Write a program to count the number of words in a string.
- Write a program to print a pattern (e.g., a pyramid or square) using loops.
- Write a program to demonstrate the use of a function to add two numbers.