Question #265185

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


int result; 

int number1 = 6, number6 = 49; 

 

result = number1 * number6; 



Expert's answer



#include <iostream>
using namespace std;
int main()
{
int result;
int number1 = 6, number6 = 49; 
result = number1 * number6; 
cout<<"Result = "<<result;
    return 0;
}

When the above code is executed, then

result= 294


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!

LATEST TUTORIALS
APPROVED BY CLIENTS