Answer to Question #34130 in C++ for mandeep

Question #34130
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
Expert's answer
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS