What will the value of the result variable be after the code segment below has been run.
int number2 = 39;
int result = 33;
if( number2 <= 83 )
{
result *= number2 ;
}
#include<iostream>
using namespace std;
int main()
{
int number2 = 39;
int result = 33;
if (number2 <= 83)
{
result *= number2;
}
cout << "Value of the result variable is " << result;
}
Comments
Leave a comment