Computer Science, asked by ashishlicgmailcom, 2 months ago

Write a Qbasic program to take to numbers from the user as input and find out the remainder and quotient.​

Answers

Answered by rajdeepsinghpanwar00
0

#include <stdio.h>

int main() {

int dividend, divisor, quotient, remainder;

printf("Enter dividend: ");

scanf("%d", &dividend);

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;

}

Similar questions