I have an assignment for my CSE class that requires me to write a program that prints out an isosceles triange made of asterisks. The program reads in the number of rows from the user and prints out a triangle with that amount of rows. The following functions were given to us: Print(NumRows-irow) blanks; Print (2*irow-1) characters '*'; Would I be right in assuming that the easiest way to do this is to define two functions? That is, one to print out spaces and one to print out asterisks?
1 Year Ago
Related Article:C++ Functions
is a C++ discussion thread by CGorelik that has 1 reply, was last updated 1 year ago and has been tagged with the keywords: c++, functions, order.