Answer Posted / rabid manatee
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int n = 4;
if (argc == 2) {
n = atoi(argv[1]);
}
for(int i=n; i >= 0; i--) {
cout << i*2 + 1 <<endl;
}
}
| Is This Answer Correct ? | 3 Yes | 14 No |
Post New Answer View All Answers
What is the latest version on c++?
What are inline functions? What is the syntax for defining an inline function?
Can we distribute function templates and class templates in object libraries?
What does flush do?
How do you generate a random number in c++?
When we use Abstract Class and when we use Interface?where we will implement in real time?
What is pointer -to-members in C++? Give their syntax?
How do I make turbo c++ full screen?
What is virtual destructor? What is its use?
What is the c++ programming language used for?
what is the difference between overloading & overriding? give example.
Can we use struct in c++?
What is time h in c++?
What is a set in c++?
What are activex and ole?