Help i need to print a triangle pattern using "$" signs. Preferably using for loops. How can i start?
Help i need to print a triangle pattern using "$" signs. Preferably using for loops. How can i start?
How can i start?Code:#include <iostream> int main() { std::cout << "This program will print a triangle in a few moments..." << std::endl; // TODO: Add triangle drawing code return 0; }
- lmov
Partly depends on what type of triangle and what orientation it has. Basically, use two nested for loops.