//prg to n odd nos in desc order
//Downloaded From www.c4cpp.co.nr. (C)2009.All rights reserved.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i,n;
cout<<"Enter the no :"<<endl;
cin>>n;
if(n%2==0)
n=n-1;
for(i=n;i>=1;i=i-2)
cout<<i<<endl;
getch();
}
Programs Can Also Be Downloaded From The Folders Below....[Or Scroll Down]
Odd Nos. in descending order
Click Here To Download C++ File Of This Program
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment