Source Code
// 6. Program to find quotient and remainder of two integers entered by user
// Arpan Das - CST 2nd Year (VOCLET)
#include <stdio.h>
//#include <conio.h>
//#include <stdlib.h>
void main () {
int x, y;
//clrscr();
//system("cls");
printf("\t\t..:: quotient and remainder of two integers ::..\n\n");
printf("Please enter dividend and divisor respectively: ");
scanf("%d%d", &x, &y);
printf("\nThe quotient is %d and remainder is %d", x/y, x%y);
//getch();
}
Output
..:: quotient and remainder of two integers ::..
Please enter dividend and divisor respectively: 50 3
The quotient is 16 and remainder is 2