Write a c++ program to display this series of numbers in descending order(1,2,3,4,5,6,7,8,9)
1
Expert's answer
2015-10-07T04:12:34-0400
#include <cstdio> #include <iostream> using namespace std;
int main() { long long left, right; puts("Enter left bound."); cin >> left; puts("Enter right bound."); cin >> right; for (; right >= left; cout << right << " ", right--);
Comments
Leave a comment