Write a program that prompts user to input two numbers a numerator and a divisor your program should then divide the numerator by the divisor and display the quotient and remainder

Respuesta :

Answer and Explanation:

NOTE: The program is written in C Programming Language. Hope this helps.

HERE IS THE PROGRAM:

#include <stdio.h>

int main(){

int numerator, divisor, quotient, remainder;

printf("Enter numerator: ");

scanf("%d", &numerator);

printf("Enter divisor: ");

scanf("%d", &divisor);

// Computes quotient

quotient = numbers / divisor;

// Computes remainder

remainder = dividend % divisor;

printf("Quotient = %d\n", quotient);

printf("Remainder = %d", remainder);

return 0;

}