C Program to print 1 to 10 Numbers using While and Break

C Program to print 1 to 10 Numbers using While and Break


#include

 int main()
 {
       int i;

  i = 0;
  while ( i < 20 )
       {
            i++;
            if ( i == 10)
                 break;
       }
       return 0;
 }


No comments:

Post a Comment