C Program to Compute Quotient and Remainder
C programming
--------------------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int dividend, divisor, remainder, quoitent;
printf("enter the dividend\n");
scanf("%d",÷nd);
printf("enter the divisor");
scanf("%d",&divisor);
remainder= dividend% divisor;
quoitent = dividend / divisor;
printf("quoitent =%d\n", quoitent);
printf("remainder = %d\n", remainder);
getch();
}
Comments
Post a Comment