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 outcome of cout< a) 16 b) 17 c) 16.5
Explain the static member function.
How delete [] is different from delete?
What is an associative container in c++?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
What relational operators if statements in c++?
How long does it take to get good at leetcode?
What is set in c++?
What is the most powerful coding language?
What is a class template in c++?
What are the differences between new and malloc?
what does the following statement mean? int (*a)[4]
List the types of polymorphism in c++?
Why we use #include iostream in c++?
What sorting algorithm does c++ use?