⧼exchistory⧽
5 exercise(s) shown, 0 hidden
ABy Admin
May 13'24

Write a program that prompts the user for a string (pick a maximum length), and prints its reverse.

ABy Admin
May 13'24

Write a program that prompts the user for a sentence (again, pick a maximum length), and prints each word on its own line.

ABy Admin
May 13'24

Write a function that outputs a right isosceles triangle of height and width n, so n = 3 would look like

*
**
***
ABy Admin
May 13'24

Write a function that outputs a sideways triangle of height 2n-1 and width n, so the output for n = 4 would be:

*
**
***
****
***
**
*
ABy Admin
May 13'24

Write a function that outputs a right-side-up triangle of height n and width 2n-1; the output for n = 6 would be:

     *
    ***
   *****
  *******
 *********
***********