C-language-question

Level: Beginner

1. Write a program to print "Hello, World!".
2. Write a program to add two numbers.
3. Write a program to find the maximum of two numbers.
4. Write a program to swap two numbers.
5. Write a program to find the factorial of a number.
6. Write a program to check if a number is even or odd.
7. Write a program to find the sum of the first 10 natural numbers.
8. Write a program to print the Fibonacci series up to 10 terms.
9. Write a program to reverse a number.
10. Write a program to check if a number is a palindrome.
11. Write a program to find the largest of three numbers.
12. Write a program to convert Celsius to Fahrenheit.
13. Write a program to convert Fahrenheit to Celsius.
14. Write a program to find the sum of digits of a number.
15. Write a program to find the GCD of two numbers.
16. Write a program to find the LCM of two numbers.
17. Write a program to print all prime numbers between 1 and 100.
18. Write a program to check if a number is prime.
19. Write a program to find the average of three numbers.
20. Write a program to calculate the area of a rectangle.
21. Write a program to calculate the area of a circle.
22. Write a program to calculate the area of a triangle.
23. Write a program to calculate the perimeter of a rectangle.
24. Write a program to calculate the circumference of a circle.
25. Write a program to print the multiplication table of a number.
26. Write a program to find the roots of a quadratic equation.
27. Write a program to calculate the simple interest.
28. Write a program to calculate the compound interest.
29. Write a program to print the ASCII value of a character.
30. Write a program to print the sum of all even numbers between 1 and 50.
31. Write a program to print the sum of all odd numbers between 1 and 50.
32. Write a program to count the number of digits in a number.
33. Write a program to print the reverse of a string.
34. Write a program to find the length of a string.
35. Write a program to concatenate two strings.
36. Write a program to compare two strings.
37. Write a program to copy a string.
38. Write a program to check if a character is a vowel or consonant.
39. Write a program to check if a character is an alphabet or not.
40. Write a program to check if a character is a digit or not.
41. Write a program to check if a character is an uppercase or lowercase.
42. Write a program to count the number of vowels in a string.
43. Write a program to count the number of consonants in a string.
44. Write a program to find the largest element in an array.
45. Write a program to find the smallest element in an array.
46. Write a program to find the sum of elements in an array.
47. Write a program to find the average of elements in an array.
48. Write a program to print all elements of an array.
49. Write a program to print all even elements of an array.
50. Write a program to print all odd elements of an array.

Intermediate Level: View

Advanced Level: View