What will the value of the answer variable be after the code segment below has been run.
int answer ;
int number1 = 285, number6 = 46, number11 = 1;
answer = ( number1 % number6 ) / number11;
#include<iostream>
using namespace std;
int main(){
int answer ;
int number1 = 285, number6 = 46, number11 = 1;
answer = ( number1 % number6 ) / number11;
cout<<answer<<endl;
}
The answer is 9
Comments
Leave a comment