Question: Write a c program division.c , which divides two numbers scanned in and rounds the result to the nearest integer, 1 decimal place, 5 decimal

Write a c program division.c, which divides two numbers scanned in and rounds the result to the nearest integer, 1 decimal place, 5 decimal places, and 20 decimal places.
When i run the program it should look like this:
Enter the dividend: 6
Enter the divisor: 2
6 divided by 2
To the nearest integer: 3
To 1 decimal place: 3.0
To 5 decimal places: 3.00000
To 20 decimal places: 3.00000000000000000000
We can assume you will be given 2 integers.
If the divisor is 0, print "Don't be silly!" and return from main.

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!