+ 5
Print Hollow Triangle Pattern using Loops
Input the number of lines ( variable 'n' ) to print the hollow triangle from user. e.g. If user gives 5, the program should print ####1 ###1#1 ##1###1 #1#####1 1#1#1#1#1 Note: Replace # with space(s) and every edge should have 'n' numbers of 1 or whatever symbol you like. Use only loop and conditions & input a variable n to print triangle for n lines.
4 odpowiedzi
+ 13
+ 1
MAN i just realized that this doesn't work fine in mobile..... Thanks for the challenge.
https://code.sololearn.com/WxtlCkHnyL9D/#js
0
https://code.sololearn.com/c7m142pgG8n0/?ref=app.....i hadn't written comments but i hope this will help you