Question #267022

What will the value of the solution variable be after the code segment below has been run.

int solution = 90; 

int number12 = 16, number25 = 8; 

 

solution -= number12 * number25 ; 




1
Expert's answer
2021-11-16T18:35:59-0500

Answer is = -38

number12×number25=16×8=128solution=12890=128=90128=38number12 \times number25 = 16 \times 8 = 128\\ solution -= 128\\ 90 -= 128\\ =90 - 128 = -38\\


You can also use the following program:

#include<iostream>
using namespace std;
int main(){
	int solution = 90int number12 = 16, number25 = 8; 


 


solution -= number12 * number25 ; 


cout<<solution<<endl;
}

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!
LATEST TUTORIALS
APPROVED BY CLIENTS