Question: 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

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!