Friday, April 16, 2010

First 20 Odd Numbers

#include<iostream.h>
#include<conio.h>
 void main()
 {
 clrscr();
 int l;
 cout<<"1st 20 odd nos.";
 for(l=1;l<=40;l++)
 if(l%2!=0)
 cout<<"\n"<<l;
 getch();
 }

No comments:

Post a Comment