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 is computer programming useful in real life?
What is the difference between the compiler and the preprocessor?
Is c++ a good beginners programming language?
How do I run a program in notepad ++?
How do you save a c++ program?
Explain the difference between class and struct in c++?
Can a program run without main?
What is the hardest coding language to learn?
What are virtual functions in c++?
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
what is Loop function? What are different types of Loops?
What is the size of a vector?
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
Is linux written in c or c++?
What do you mean by translation unit in c++?