Multiplication question with two Variables
Input:
Output:
Input:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #include <iostream.h> #include <conio.h> int main() { cout <<" Multiplication with two Variables\n"; int x, y, z; cout <<"Enter a enter value?\n"; cin >> x; cout <<"Enter a enter value?\n"; cin >> y; z = x * y; cout << x << " * " << y <<" = " << z <<endl; getch (); return 0; }// End Main |
Output:
Multiplication with two Variables Enter a enter value? 587 Enter a enter value? 345 587 * 345 = 202515
No comments:
Post a Comment