/* */ Click to Join Live Class with Shankar sir Call 9798158723

return statement in C ?


Syntax:-

While(condition)
{
action -1
continue;
action n;
}

Note:

"Whenever a continue statement is executed, the rest of the statements within the body of the loop are skipped and the conditional expression in the loop is executed."


Q.) W.A.P to print 1 3 4 5.
 #include<stdio.h>
 #include<conio.h>
 void main()
 {
 int i ;
 for( i=1;i<=5;i++)
 {
 if(i==2)
 {
 continue;
 }
 printf(“%d”,i);
 }
 getch();
 }
Output
1
3
4
5