Ask your own question, for FREE!
Computer Science 18 Online
OpenStudy (anonymous):

Write a C++ prg to read two numbers and their remainder and quotient?

OpenStudy (anonymous):

#include<iostream.h> #include<conio.h> void main() { clrscr(); int a,b,q,r; cout<<"Enter two numbers:"; cin>>a>>b; if(a>b) { q=a/b; r=a%b; cout<<"\nQuotient="<<q; cout<<"\nRemainder="<<r; } else cout<<"\nFirst no. should be greater than second no....!!!"; getch(); }

OpenStudy (anonymous):

lol.............its ok

OpenStudy (anonymous):

i just copied frm the website

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!