Saturday, March 25, 2017

do while loop to print number from 1 to 10 in C

int i=0;
    do{
         i++;
    printf("loop %d\n",i);
    }while(i<=9);

No comments:

Post a Comment