Solution. for(int i = 0; i < 300; i++)
{
if ( i == 0)
{
cout << "i = " << i << endl;
}
}
dividend %divisor - Returns the remainder of oneexpression divided by another.
i
0=0, if(0==0){i=0}//Outputs 0 because the condition is fulfilled
1=1 //1 is not equal to0
2=2 //2 is not equal to0
3=3 //3 is not equal to0
4=4 //4 is not equal to0
….
12=0, if(0==0){i=12} //Outputs 12 because the condition is fulfilled
……
24=0, if(0==0){i=24} //Outputs 24 because the condition is fulfilled
Comments
Leave a comment