Test Data and Expected Output
Test Data and Expected Output
Write a C program that accepts 4 real numbers from the keyboard and prints out
the difference (using 4-decimal places) of the maximum and minimum values of
these numbers.
Test data and expected output:
2. Write a C program that accepts a real number x from the keyboard and prints out the
corresponding value of sin(1/x) using 4-decimal places.
Test data and expected output:
Enter value of x: 0
Value of x must be nonzero: try again
3. Write a C program that accepts (from the keyboard) a positive integer less than 1000
and prints out the sum of the digits of this number.
Test data and expected output: