Wednesday, 9 April 2014
write program that inputs divident and divisor.it then calculate and displays the quotient and remainder
Do you like this story?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#include<iostream.h> #include<conio.h> void main(){ int div ,dis, q , r; clrscr(); cout<<enter divident "; cin>>div; cout<<enter divisor "; cin>>dis; q=div/dis; r=div%dis; cout<<"quotient="<<q<<endl; cout<<"remainder="<<r; getch(); } |
OUTPUT