Friday, May 3, 2013

Printing 100-1 using Do-While Loop in c

#include<stdio.h>
void main() {
   int i=100;
   do {
      printf("%d, ",i);
      i--;
   } while(i>=1);
}

Do While Loop, C++ Program



No comments:

Post a Comment