Thursday, March 3, 2016

do while loop in C

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#include <stdio.h>

main()
{
 int i=10;
 do{
  printf("Hello %d\n",i);
  i--;
  if(i==5) break;
 }
 
    while(i>=1);
}

No comments:

Post a Comment

Thank you for commenting. Please wait for response :)