Monday, October 1, 2012

C++ - To Print first 100 natural numbers

#include<iostream.h>
#include<conio.h>
int main(void)
{
  int i;
  cout<<"First 100 natural numbers are : \t";
for(i=1; i<=100; i++)
{
            cout<<i<<",\t";
}
getch();
return 0;
}

0 comments:

Post a Comment