0
Could someone help me to build program in c# to print simple triangle
Given integer n the number of rows in a triangle, write a program to get a triangle with n rows, constraints n>2,if input is 7 the it will print * triangle with 7 rows and if user input is 9 then o/p will having triangle with 9 depends on number
2 Antworten
0
Post your try :
Hint : each row print like 7 5 3 1 stars...
0
No each row should print * ,startiu with first star then two stars and at last line depending upon user valu horizontal print that n stars,I will share my code here after some time