Mastery Topic 15

This program do a piramid with T, ask the user the range and print the piramid, this program use nested fors. #include <iostream> using namespace std; void triangles(int a) { for(int i = 1; i <= a; i++) { cout << endl; for(int k = i; k > 0; k–) { cout << «T»; }… Sigue leyendo Mastery Topic 15