Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am stuck on this C-Programming question? Can anyone help me solve it? Try to write a code with following features. It should get two

I am stuck on this C-Programming question? Can anyone help me solve it?

Try to write a code with following features. It should get two integers from user, and divide the bigger one to smaller one. The output should be as below. You MUST use type casting for this question. Also use the print format I used in example.

a) The output should be an integer

b) The output should be an integer following by zeros after point

c) The output should be the exact result of division.

Example:

//////////////////////////////////////////////////////////////////////

Input 1: 10 ******* Input2: 3

/////////////////////////////////////////////////////////////////////

The answer for a is : 3

The answer for b is : 3.00000

The answer for c is : 3.33333

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_2

Step: 3

blur-text-image_step3

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

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

ISBN: 978-0764535376

More Books

Students also viewed these Databases questions

Question

2. How do they influence my actions?

Answered: 1 week ago