Wednesday, March 13, 2019

Display 3 to 9 using while loop in C programming


Display 3 to 9 using while loop in C programming



#include <stdio.h>

int main()
{
  int i=3;

  while(i<10)
  {
     printf("%d\n",i);
     i++;
  }   

}


OUTPUT:
3 4 5 6 7 8 9

No comments:

Post a Comment