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.

Expert's answer

#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!

LATEST TUTORIALS
APPROVED BY CLIENTS