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

Write a 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.In mathematics, a dividend is a number that is divided by another number (the divisor). For example, in the following equation,10-:5=2has 10 as the dividend and 5 as the divisor.Using ints in this exercise will result in only returning integers. Try thinking about different data types you can use instead!Examplesdcc division.c -o division./divisionEnter the dividend: 6Enter the divisor: 26 divided by 2To the nearest integer: 3To 1 decimal place: 3.0To 5 decimal places: 3.00000To 20 decimal places: 3.00000000000000000000./divisionEnter the dividend: 1Enter the divisor: 31 divided by 3

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!