0
What am I doing wrong?
Can somebody view this and tell me what I’m doing wrong? Idk what I’m doing... https://code.sololearn.com/ci7ZM86SZphP/?ref=app
3 Respostas
+ 1
Hey Madelyn you forgot to print 'a' in your code.
+ 2
int a = 3;
--a; // decrement the value of a by 1 so a becomes 2 here.
a *= 4; // This is equivalent to a = a * 4 = 2 * 4 = 8
cout << a << endl; // prints 8 as output.
0
MY TEACHER IS TERRIBLE IDEK WHAT I’M DOING