This program demonstrates Binary Expression
Source Code:
Output:
Source Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include <iostream.h> #include <conio.h> int main() { int a, b; cout << "WeLcOmE tO tHe PrOgRaM oF demonstrates binary Expression.!!!!\n"; cout << "\tEnter two Integer Values?\n"; cin >> a >> b; cout << a <<" + " << b << " = " << a + b << endl; cout << a <<" - " << b << " = " << a - b << endl; cout << a <<" * " << b << " = " << a * b << endl; cout << a <<" / " << b << " = " << a / b << endl; cout << a <<" % " << b << " = " << a % b << endl; cout << "HoPe YoU EnJoY the Demanstration\n"; getch(); return 0; }// main |
Output:
WeLcOmE tO tHe PrOgRaM oF demonstrates binary Expression.!!!! Enter two Integer Values? 84 73 84 + 73 = 157 84 - 73 = 11 84 * 73 = 6132 84 / 73 = 1 84 % 73 = 11 HoPe YoU EnJoY the Demanstration
No comments:
Post a Comment