Previous in Forum: Learning G Code   Next in Forum: Speech Recognition Software for a Mac Laptop
Close
Close
Close
2 comments
Rate Comments: Nested
Participant

Join Date: Nov 2010
Posts: 4

Star Triangle in Java

03/02/2011 6:16 AM

how write a simple java program to print this triangle

*****

****

***

**

*

Register to Reply
User-tagged by 1 user
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".
2
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#1

Re: Star Triangle in Java

03/02/2011 9:35 AM

You write this simple program by opening your textbook and reading about your screen display functions. Now wiggle your fingers on the keyboard to write some code and see what happens when use the commands in your textbook. You'll first find that the compiler is very fussy about accepting correct syntax and punctuation. Much more critical than people here are over writing in complete English sentences. Once you get the compiler to accept your code, you'll likely find that it does not do precisely what you want. This is normal. You must now figure out why the valid code you wrote makes the type of display you've generated. This will hopefully teach you how to adjust the program to make the display you want.

Now do your homework.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply Good Answer (Score 2)
Guru
Technical Fields - Technical Writing - New Member Engineering Fields - Piping Design Engineering - New Member

Join Date: May 2009
Location: Richland, WA, USA
Posts: 21017
Good Answers: 795
#2

Re: Star Triangle in Java

03/02/2011 9:51 PM

What about the popularity of Y-Δ motor starters in Indonesia?

__________________
In vino veritas; in cervisia carmen; in aqua E. coli.
Register to Reply Off Topic (Score 5)
Register to Reply 2 comments

Good Answers:

These comments received enough positive votes to make them "good answers".

Previous in Forum: Learning G Code   Next in Forum: Speech Recognition Software for a Mac Laptop

Advertisement