QOUTIENT AND REMAINDER PROGRAM IN C
#include<stdio.h> //header file stdio.h
#include<conio.h> //header file conio.h
main() //main() function
{ //start of the program
int n1,n2,qoutient,remainder; //variable declaration
clrscr();
printf("enter the two numbers");
scanf("%d%d",&n1,&n2); //reading values from user
qoutient=n1/n2;
remainder=n1%n2;
printf("qoutient is %d remainder is %d",qoutient,remainder);
getch();
} //end of the program
#include<stdio.h> //header file stdio.h
#include<conio.h> //header file conio.h
main() //main() function
{ //start of the program
int n1,n2,qoutient,remainder; //variable declaration
clrscr();
printf("enter the two numbers");
scanf("%d%d",&n1,&n2); //reading values from user
qoutient=n1/n2;
remainder=n1%n2;
printf("qoutient is %d remainder is %d",qoutient,remainder);
getch();
} //end of the program
No comments:
Post a Comment