This program read two integer number from the keyboard and print their division
Source Code:
Result:
Source Code:
1 2 3 4 5 6 7 8 9 10 11 12 | #include <iostream.h> #include <conio.h> int main() { float X, Y, R; cout << " Enter two integer: \n"; cin >> X >> Y; R = X / Y ; cout<< "\t"<< X << " / " << Y << " = " << R <<endl; getch(); return 0; } |
Result:
Enter two integer: 225 25 225 / 25 = 9
No comments:
Post a Comment