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;
#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
Comments
Leave a comment