Wednesday, March 20, 2013

displayind odd numbers upto 100 in C++

#include <iostream.h>
#include <conio.h>
int main()
{
int i;
for(int i=1;i <= 100 ;i++)
{

 if(i%2==1)
cout<<i<<endl;
}
getch();
return 0;

}

No comments:

Post a Comment