|
Until you sign up you can't do much. Yes, it's free.
|
|
|
|
|
|
|
 | / / / Viewing Topic
|  |
|
|
this will really show how good my math is but... |
|
|
|
Replies: 11 Last Post Nov. 6 1:24am by Ethryx
|
|
|
|
|
|
|
|
|
 LiveWire Humor
|
|
|
|
|
|
musefan13
Connoisseur
Patron
|
Oh fuck me
------- Atheism The alternative to wishful thinking
|
|
|
|
|
JTHM
Soothsayer
Support Leader
|
It's a geometric series but I don't remember the formula. :/ I guess try a google search with that? Sorry I can't be of more help.
------- ಠ_ಠ ಠ_ಠ ಠ_ಠ
|
1:14 am on Nov. 6, 2009 | Joined: April 2007 | Days Active: 543 Join to learn more about JTHM New York, United States | GLBT Ally Female | Posts: 6,311 | Points: 13,819
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
Ethryx
Enlightened One
Patron
Tech Support Leader
|
Quote: from King Kong at 4:21 am on Nov. 6, 2009
Quote: from Ethryx at 9:18 am on Nov. 6, 2009
Quote: from King Kong at 4:16 am on Nov. 6, 2009
Quote: from Ethryx at 9:15 am on Nov. 6, 2009
Use a for loop. Start at 1. Run loop while x < 100. Increment by 2.
System.out.println("Program starting" ); System.out.println("Loop to print values all the even numbers between 0 to 100 inclusive" ); int no3 = 1; // setting the while loop while (no3 < 100) // the loop it's self { System.out.println("Number is" + no3 ); no3 = no3 + 2; } this then. ok 
That should work just fine. There is a lot shorter way of doing that however. Let me know if you want to know.
Got to do while loops. 
Oh okay. Then yeah, that's how you would do it
------- Learn from yesterday, live for today, hope for tomorrow..
|
1:24 am on Nov. 6, 2009 | Joined: Jan. 2007 | Days Active: 613 Join to learn more about Ethryx New York, United States | Straight Male | Posts: 5,224 | Points: 15,043
|
|
| |
|
|
|
| Looking for something else?
|
|
|
|
|
|
 | / / / Viewing Topic |  |
|