Answer to Question #267022 in C++ for pakie

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 \\times number25 = 16 \\times 8 = 128\\\\\nsolution -= 128\\\\\n90 -= 128\\\\\n=90 - 128 = -38\\\\"


You can also use the following program:

#include<iostream>
using namespace std;
int main(){
	int solution = 90; 


int 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!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS