Problem 3: Find the result
Find the Output of the following code:
for ( i = 1 , j = 1 ; i <= 5 , j <= 2 ; i ++ , j ++
)
{
cout << “
i = “ << i ;
cout <<
“ j = “ << j ;
cout<<endl;
}
please enter the Output in the comment section
Find the Output of the following code:
for ( i = 1 , j = 1 ; i <= 5 , j <= 2 ; i ++ , j ++
)
{
cout << “
i = “ << i ;
cout <<
“ j = “ << j ;
cout<<endl;
}
please enter the Output in the comment section
i=1,2,3,4,5.
ReplyDeletej=1,2.
wrong
DeleteCan't give more than 1 condition checking. So it's an error
ReplyDeletethere is no syntax error, we can give more than one condition also
DeleteI=1j=1
DeleteI=2j=2
correct
Delete