/*program to explain unconditional statement continue*/
#include<stdio.h>#include<conio.h>
int main()
{
int i,n;
printf(“enter the n value”);
scanf(“%d”,&n)
for(i=1;i<=n;i++)
{
if(i==5)
{
continue;
}
printf(“%d\t”,i);
}
getch();
return 0;
}
output
enter the n value9
1 2 3 4 5 6 7 8 9
Comments
Post a Comment