0% found this document useful (0 votes)
28 views2 pages

C Programming Questions for Beginners

The document lists a series of basic C programming exercises focused on loops and conditional statements. It includes tasks such as printing 'Hello World', checking for odd or even numbers, and calculating the factorial of a number. The exercises are designed to help learners practice fundamental programming concepts in C.

Uploaded by

robo90683
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

C Programming Questions for Beginners

The document lists a series of basic C programming exercises focused on loops and conditional statements. It includes tasks such as printing 'Hello World', checking for odd or even numbers, and calculating the factorial of a number. The exercises are designed to help learners practice fundamental programming concepts in C.

Uploaded by

robo90683
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

C Programming Questions (Up to Loops) – "Write a C program for...

"

Basic Level
1. Write a C program for printing "Hello World".
2. Write a C program for reading and printing an integer.
3. Write a C program for adding two numbers.
4. Write a C program for swapping two numbers using a third variable.
5. Write a C program for swapping two numbers without using a third variable.
6. Write a C program for finding ASCII value of a character.
7. Write a C program for converting Celsius to Fahrenheit.
8. Write a C program for finding the area of a circle.
9. Write a C program for calculating simple interest.

Conditional Statements
10. Write a C program for checking whether a number is odd or even.
11. Write a C program for checking positive, negative or zero.
12. Write a C program for finding the largest of two numbers.
13. Write a C program for finding the largest of three numbers.
14. Write a C program for checking leap year.
15. Write a C program for checking vowel or consonant.
16. Write a C program for checking alphabet, digit or special character.
17. Write a C program for finding student grade using marks.
18. Write a C program for making a simple calculator using switch case.
19. Write a C program for checking multiples of 5 and 11.
20. Write a C program for checking divisibility by 3 or 7.

Loops
21. Write a C program for printing numbers from 1 to n.
22. Write a C program for printing even numbers from 1 to n.
23. Write a C program for finding sum of first n natural numbers.
24. Write a C program for printing multiplication table of a number.
25. Write a C program for finding factorial of a number.
26. Write a C program for finding sum of digits of a number.
27. Write a C program for reversing a number.
28. Write a C program for checking palindrome number.
29. Write a C program for finding the largest digit in a number.
30. Write a C program for counting digits in a number.
31. Write a C program for printing Fibonacci series.
32. Write a C program for checking prime number.
33. Write a C program for printing prime numbers in a given interval.
34. Write a C program for finding GCD of two numbers.
35. Write a C program for finding LCM of two numbers.
36. Write a C program for printing star patterns.
37. Write a C program for finding sum of even and odd digits.
38. Write a C program for checking Armstrong number.
39. Write a C program for printing numbers in reverse order from n to 1.
40. Write a C program for finding power of a number using loop.

You might also like