Skip to main content

examples of continue statement in C

 #include <stdio.h>
int main()
{ int a, b;
printf("Enter the number you want multiplication of :-\n");
scanf("%d",&a);
for(b=1;b<=10;b++)
{ if(b==7)
{ continue;
}
printf("%d*%d = %d\n",a,b,a*b);
} return 0; }

Comments

Popular posts from this blog

example of typecasting in c

/*Type Casting in C Typecasting allows us to convert one data type into other. */ //simple example to cast int value into the float. #include <stdio.h>    int   main (){   float   f = ( float ) 9 / 4 ;     printf ( "f : %f \n " ,  f  );     return   0 ;   }