Thursday, June 13, 2013

C/C++ programing to print counting 1 to 20.


 
 
#include<stdio.h>
#include<conio.h>
 int main()  {
           int counter;
           counter=0;
           while(counter<20)
          {
                   counter++;
                   printf(“%d\n”,counter);
         }
         getch();
        return 0;
}

No comments:

Post a Comment