Last Updated :
20 Feb, 2019
What will be the output of the following code?
#include
int main()
{
int i;
for (i = 1; i <= 5; i++)
{
if ((i % 3) == 0)
break;
else
printf(\"%d \",i);
}
return 0;
}
[/sourcecode]
(A) 1 2 3 4 5
(B) 1 2
(C) Error
(D) None of these
Answer: (B)
Explanation:
Quiz of this Question
Share your thoughts in the comments
Please Login to comment...