No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
i created a loop and it doesn't run: [CODE] for ( int i = 0; i < 100; i++) { for( int j = 0; j < 100; j++); { int total = i + j; } System.out.println( total ); }[/CODE] |
|
Guys I don't know the output of the following loop please help me out [CODE]for ( int = 10; i > 0; i--) { system.out.println ( i*2); } [/CODE] and one more: [CODE]while( a < 20 ) { a += 3; System.out.println( a ); }[/CODE] Thanks! |
|
hello! I'm supposed to write a wordguess program that basically runs like the hangman game on iphone, here is my code: [CODE]import java.util.Random; import java.util.Scanner; public class Wordguess123 { public static String replaceCharAt(String s, int pos, char c) { return s.substring(0,pos) + c + s.substring(pos+1); } public static void main(String[] … |
|
I'm supposed to create a factorial application that prompts the user for a number and then displays its factorial. The factorial of a number is the product of all of the positive integers from 1 to the numbers. FOr example, 5! = 5*4*3*2*1 |