Question: (Printing Values with printf) Write a program that prints the numbers 1 to 4 on the same line. Write the program using the following methods.

  1. Using one printf statement with no conversion specifiers.
  2. Using one printf statement with four conversion specifiers.
  3. Using four printf statements.
Printing values with printf program output
Program output

Click here to see other solutions to Deitel C How To Program exercises.

Write A Comment