The document provides 15 assignments to write C programs that use scanf() to accept different data types as user input, including integer, float, double, character, and long integer. The programs are then asked to print the input values, their sum, difference, or multiplication on the output screen to demonstrate using scanf() with various data types.
The document provides 15 assignments to write C programs that use scanf() to accept different data types as user input, including integer, float, double, character, and long integer. The programs are then asked to print the input values, their sum, difference, or multiplication on the output screen to demonstrate using scanf() with various data types.
The document provides 15 assignments to write C programs that use scanf() to accept different data types as user input, including integer, float, double, character, and long integer. The programs are then asked to print the input values, their sum, difference, or multiplication on the output screen to demonstrate using scanf() with various 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.