Question: Write a simple C code with printf or scanf statement for each of the following: a. Print the unsigned integer 3500 left justified in

Write a simple C code with printf or scanf statement for each

 

Write a simple C code with printf or scanf statement for each of the following: a. Print the unsigned integer 3500 left justified in a 10-digit field with 6 digits. b. Print 1.234 in a 9-digit field with five digits after the decimal point. c. Read a time in the form hh:mm:ss, storing the parts of the time in the integer variables hour, minute and second. Skip the colons (:) in the input stream. Enter a time in hh:mm:ss format: 12:35:68 Print the below message using the variables accepted in step c: Hour: 12 Minute: 35 Second: 68

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!