Answer to Question #91494 in C for Surya

Question #91494
Write a C program to read 1 integer input and 1 float input from user. With the inputs, calculate the quotient and print it to screen.
1
Expert's answer
2019-07-08T05:47:46-0400

#include <stdio.h>


int main() {

int divider = 0;

float dividend = 0.0;

scanf("%d", &divider);

scanf("%f", &dividend);


float quotient = divider / dividend;


printf("quotient is %f\n", quotient);


return 0;

}


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS