Question: p/s: we are not allowed to use %f in printf, we're only allow to use, if, if-else, and while loop for this program. The scanf

 p/s: we are not allowed to use %f in printf, we're

p/s: we are not allowed to use %f in printf, we're only allow to use, if, if-else, and while loop for this program. The scanf can be anything and casting is allowed.

Option 4: Print out floating point a) If option 4 is selected, the user should be prompted to enter a number: Please enter the number you would like to print: For input 45.678. the output must then be 45.678000 This option is indeed quite challenging because you cannot use the format indicator of inside the printf0. The decimal point .' can be printed out directly or use the %c option. but you need to find out its position and figure out ways to print out the portions before and after the decimal point. You must also have exactly 6 digits after the decimal point just like that with the %f option

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 Databases Questions!