Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions