What's new

Closed Programming help po.may premyo sa makakasagot

Status
Not open for further replies.

alliit

Addict
Joined
Feb 16, 2016
Posts
21
Reaction
0
Points
70
Create a program that accepts any number.create a triangle whose height is as tall as the inputted number. sample output: enter number: 3
***
**
*
 
madali lng yan... ano language? c at java lang alam ko.

ito algo ohh
for(i=n;i>0;i--){ //n = input
print("*");
for(j=0;j<i-1;j++){
print("*");
}
print("\n");
}
 
Status
Not open for further replies.

Similar threads

Back
Top