You are on page 1of 1

Assignment- 3

Use of scanf() with different Data Types


1) Write a C Program which accepts two integer values from user and print it on output
screen.
2) Write a C Program which accepts two float values from user and print it on output
screen.
3) Write a C Program which accepts two double values from user and print it on output
screen.
4) Write a C Program which accepts two character values from user and print it on output
screen.
5) Write a C Program which accepts two long integer values from user and print it on
output screen.
6) Write a C Program which accepts two integer values from user and print sum of it on
output screen.
7) Write a C Program which accepts two float values from user and print sum of it on
output screen.
8) Write a C Program which accepts two double values from user and print sum of it on
output screen.
9) Write a C Program which accepts two long integer values from user and print sum of it
on output screen.
10) Write a C Program which accepts two integer values from user and print difference of it
on output screen.
11) Write a C Program which accepts two float values from user and print difference of it
on output screen.
12) Write a C Program which accepts two double values from user and print difference of it
on output screen.
13) Write a C Program which accepts two long integer values from user and print
difference of it on output screen.
14) Write a C Program which accepts two integer values from user and print multiplication
of it on output screen.
15) Write a C Program which accepts two float values from user and print multiplication of
it on output screen.

You might also like