Answer Posted / nagarajan n.
int n;
cout<<"enter a num:";
cin>>n;
for(int i=n;i>=1;i--)
{
if((i%2)!=0)
{
cout<<i<<"/t";
}
}
Is This Answer Correct ? | 50 Yes | 26 No |
Post New Answer View All Answers
How does java differ from c and c++?
What are shallow and deep copies?
How java is different from c and c++?
Why is c++ considered difficult?
What are the rules for naming an identifier?
the maximum length of a character constant can be a) 2 b) 1 c) 8
What are the unique features of C++.
What is prototype in c++ with example?
Can we use pointers in c++?
Define friend function.
How do you generate a random number in c++?
When should I use unitbuf flag?
What is stl containers in c++?
What is #include math h in c++?
What are the advantages of pointers?