Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions