wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Some Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Some Problem" Watch "Some Problem" New topic
Author

Some Problem

Asma Hafeez
Greenhorn

Joined: Oct 19, 2001
Posts: 3
Hi all,
Pls. tell me that how to make these programs (Outputs shown below):
*1st Program Output*

*
**
***
****
*****
****
***
**
*
*2nd Program Output*
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Pls. tell me what loops i can use here, and how to use it..
Pls. urgent reply me I will be thankfull.
With regards,
Java Student
Michael Bruesch
Ranch Hand

Joined: Sep 23, 2001
Posts: 158
This question has been answered here
------------------
Michael J Bruesch
Codito, ergo sum...
I code, therefore I am.
My Java Games, I'm quite proud


Michael J Bruesch<br /><i>I code, therefore I am.</i>
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

It would be funny if those people were in the same class.
I remember writing code in Basic, in about 1984, to solve that same problem. Text books haven't changed much I guess.


Please ignore post, I have no idea what I am talking about.
Michael Bruesch
Ranch Hand

Joined: Sep 23, 2001
Posts: 158
Yeah, I did that same problem about 3 years ago in C++. It's a good program to begin your understanding of loops.
------------------
Michael J Bruesch
Codito, ergo sum...
I code, therefore I am.
My Java Games, I'm quite proud
 
wood burning stoves
 
subject: Some Problem