diff --git a/CalculatorFunctions/Program to Compute Quotient and Remainder b/CalculatorFunctions/Program to Compute Quotient and Remainder new file mode 100644 index 0000000..26a9229 --- /dev/null +++ b/CalculatorFunctions/Program to Compute Quotient and Remainder @@ -0,0 +1,15 @@ +#include +int main() { + int dividend, divisor, quotient, remainder; + printf("Enter dividend: "); + scanf("%d", ÷nd); + printf("Enter divisor: "); + scanf("%d", &divisor); + // Computes quotient + quotient = dividend / divisor; + // Computes remainder + remainder = dividend % divisor; + printf("Quotient = %d\n", quotient); + printf("Remainder = %d", remainder); + return 0; +}