#include<stdio.h>
#include<conio.h>
void main()
{
int dividend, divisor, quotient, remainder;
clrscr();
printf("Enter the Dividend: ");
scanf("%d", ÷nd);
printf("Enter the divisor: ");
scanf("%d", &divisor);
quotient = dividend/divisor;
remainder = dividend%divisor;
printf("Quotient: %d\n",quotient);
printf("Remainder: %d",remainder);
getch();
}
To Compile Press Alt+f9
To Run Press Ctrl+f9
Output:
#include<conio.h>
void main()
{
int dividend, divisor, quotient, remainder;
clrscr();
printf("Enter the Dividend: ");
scanf("%d", ÷nd);
printf("Enter the divisor: ");
scanf("%d", &divisor);
quotient = dividend/divisor;
remainder = dividend%divisor;
printf("Quotient: %d\n",quotient);
printf("Remainder: %d",remainder);
getch();
}
To Compile Press Alt+f9
To Run Press Ctrl+f9
Output:
No comments:
Post a Comment