Answer to Question #34130 in C++ for mandeep
wite a program that genrates the 5,10,9 assign value 5 to a variable using=.multiphy it with 2 to genrate 10 and subtract 1 to genrate 9
1
2013-09-05T09:19:29-0400
#include<iostream>
usingnamespace std;
intmain () {
int a = 5;
cout << a << ",";
a *= 2;
cout << a << ",";
a -= 1;
cout << a << endl;
return 0;
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment