0

Write a program to produce the following output:

A B C D E F G F E D C B A A B C D E F F E D C B A A B C D E E D C B A A B C D D C B A A B C C B A A B B A A A

14th Oct 2017, 11:07 AM
Ravish kumar singh
Ravish kumar singh - avatar
2 Réponses
- 1
#include <iostream> using namespace std; int main() { cout << "A B C D E F G F E D C B A\nA B C D E F F E D C B A\nA B C D E E D C B A\nA B C D D C B A\nA B C C B A\nA B B A\nA A"; return 0; }
14th Oct 2017, 2:03 PM
ReimarPB
ReimarPB - avatar
+ 8
Well my brain spin kinda slow today, anyway here's a general solution in C# with extensive use of LINQ. 😉 https://code.sololearn.com/c4iPJiuG30IA/?ref=app
14th Oct 2017, 2:45 PM
Zephyr Koo
Zephyr Koo - avatar