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
2 Respuestas
- 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;
}
+ 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