Oleg Tchernov

Greenhorn
+ Follow
since Dec 30, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Oleg Tchernov

Yeah my bad I didn't proof read my initial post. Let me rephrase that more clearly.

I need a small program in which a user can input a number of his choice. That number will create a little triangle of stars like this
*
**
***
****
*****
It would be like this if the user chose "5".

I'm blocked at how to code the part system.in, the part which gives the user the possibility to choose the number.
I'm on a permanent brain fart I just don't know.
11 years ago
Hey guys, I'm new to programming and doing my first ever course in this field, which is, you guessed it, intro to java. I have an assignment which i'm a bit puzzled by and I'm fairly certain some of your expertise might help me out. The task I have to do is have a user enter a number of his choice, which in turn will create a triangle of "*".
So for example if they enter 4 then it would be:
*
**
***
****

It's essentially a practice on the while loop (I hope so) and also the int input by the user but my lack of practice really mentally blocks me from trying it out and I'm hoping someone can lead me in the right direction.
I would really appreciate an explanation and some bits here and there just so I can put it on eclipse and play around with it.

Much appreciated guys
11 years ago