Write a program that generates the following outputs :
5
10
9
Assign value 5 to a variable using= multiply it with 2 to generate 10 and subtract 1 to generate 9
1
Expert's answer
2015-07-01T06:51:26-0400
#include iostream; using namespace std; int main() { int a = 5; cout<<a; a *= 2; cout<<a; a-=1; cout<<a; return 0; }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment