C PROGRAMMING - FINAL REVISION - 4 MARKS
SEE COMPUTER SCIENCE 2082✅
Full C Programming Questions
1. Write
a C program to find the average of any two numbers entered by the user.
2. Write
a C program that asks the user to enter two numbers and then displays their sum
and product.
3. Write
a C program to calculate Simple Interest where the user inputs Principal
(P), Rate (R) and Time (T). (Formula: SI = P × R × T /
100)
4. Write
a C program to input length, breadth, and height and
display the volume of a box.
(Formula: Volume = l × b × h)
5. Write
a C program that asks the user for a number and checks whether it is odd or
even.
6. Write
a C program that asks the user for an integer and checks whether it is multiple
of 7 or not.
7. Write
a C program to input a number and check whether it is fully divisible by 5 and
8 or not.
8. Write
a C program to test whether a given number is exactly divisible by 13 or not.
9. Write
a C program to input a number and check whether it is positive or negative.
10. Write
a C program that asks the user for a number and checks whether it is negative,
positive, or zero.
11. Write
a C program that asks the user to enter any two numbers and displays the greatest
among them.
12. Write
a C program to read any three integer numbers from the keyboard and find the smallest
number.
13. Write
a C program to read two numbers and display the smaller one.
14. Write
a C program to check whether a student is pass or fail, when the pass
mark is 45.
15. Write
a C program to input the lengths of three rods and display whether a triangle
can be formed using them or not. (Condition: a + b > c, a + c > b,
b + c > a)
16. Write
a C program that asks the values of three sides of a triangle and checks
whether the triangle is scalene or not. (Scalene: all sides
different)
17. Write a C program to display the series 1,
2, 3, 4, … up to 10 terms and also find their sum.
18. Write
a C program to display the series 2, 4, 6, 8, … up to the 10th term.
19. Write
a C program to display the series 1, 4, 9, 16, … up to 10 terms and also
find their sum.
20. Write
a C program to display the first 10 odd numbers.
21. Write
a C program to find the sum of the first 20 even numbers.
22. Write
a C program to print the first 10 natural numbers.
23. Write
a C program to find the sum of the first 10 natural numbers.
24. Write
a C program to find the sum of odd numbers from 80 to 90.
25. Write
a C program to display the series 40, 41, 42, 43, … up to 10 terms and
also find their sum.
26. Write
a C program to display the odd numbers from 1000 to 500 and also find
their sum.

No comments:
Post a Comment