Make a program code reverse the display from N to 1 to 1-N
#include <iostream> int main() { int n; std::cin >> n; for (int i = 0; i < n; i++) { if (i == n-1) { break; } std::cout << i - n << " "; } return 0; }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment