|
-
While loop program
Plz help. I am a rookie in Java programming and have a question on how to go by doing a while loop program.
Write a program which reads in the base and altitude of a triangle, computes the area, and prints the base, altitude and area of each in good form. Continue until the user enters a "-1" for the base.
I know the output is suppose to look like this:
Tri base altitude area
1 ## ## ##
2 ## ## ##
Thanks.
Similar Threads
-
Replies: 26
Last Post: 12-01-2012, 04:12 AM
-
Replies: 1
Last Post: 08-12-2007, 09:38 PM
-
By westweb in forum VB Classic
Replies: 8
Last Post: 06-11-2007, 03:17 PM
-
Replies: 1
Last Post: 02-18-2007, 07:43 PM
-
By Sinni in forum VB Classic
Replies: 1
Last Post: 11-26-2002, 12:56 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks