Created
May 21, 2014 09:32
-
-
Save Manume/44af9059697f6aaa7266 to your computer and use it in GitHub Desktop.
Program to enter two integers and print the quotient and remainder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
#include <conio.h> | |
int main() | |
{ | |
clrscr(); | |
int x,y,quotient,remainder; | |
cout << "Enter 2 integers greater than 0 : "; | |
cin>>x>>y; | |
quotient=x/y; | |
remainder=x-(quotient*y); | |
cout << "Quotient of " << x << " & " << y << " = " << quotient << "\n"; | |
cout << "Remainder" << " = " << remainder << "\n"; | |
getch(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment