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; }
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments