Monday, April 21, 2014

Nested FOR loops




Hello everyone!




This is my first post here,so excuse me if i write something wrong.



I was looking at this tpic,and i havent found question like mine.




Im absolute beginner in java,but i need to write a class,that will give me output like this:




*



***



****



***



*




I have to use for loop,i know that i have to use nested for loops,for rows and columns. I just cant figure it out the thing with spaces,and how to turn it to count back.



Hope you guys understand what i want. Thank you all! Greetings and happy holidays!







No comments:

Post a Comment