C Program to Print Quotient and Remainder
C Program to Print Quotient and Remainder |
#include <conio.h> void main() { int a, b, quotient, remainder; printf("Enter dividend number: "); scanf("%d", &a); printf("Enter divisor number: "); scanf("%d", &b); quotient = a / b; remainder = a % b; printf("Quotient is= %d\n", quotient); printf("Remainder is= %d", remainder); getch(); |
Comments
Post a Comment