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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started