10 Practice Problems ICS (F)
10 Practice Problems ICS (F)
SECTION F
Practice Problems
1.Write a C program where you will declare four integer variables (say a, b, c and d),
initialize them by values of your choice, and calculate a * b + (a – c) / d + b.
2. Write a C program where you will declare two integer variables, input them using scanf,
and perform the basic arithmetic operations on them.
3. Write a C program which will calculate the terminal velocity of a moving body
by using the following equation:
v=u+at
You have to take as input u, a and t in order. Can you figure out the data types for all
the variables?
6. Program that will define a constant using “CONST” and print the value.
A 65
e 101
E 69
8. Write a C program to convert an uppercase character into lowercase. User will provide
an uppercase character from the keyboard.
M m
R r
9.
Write a C program to find the sum of two integer numbers with a complete
user experience.
Sample-1:
10
20
Sample-2:
75
27
am a
qr No vowels