Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
3/6/2013 11:13:36 AM EDT
I have gotten halfway through this and am stuck on number 4. Any help would be appreciated





import java.util.Scanner;

public class Star
{
public static void main( String[] args )
{
Scanner input = new Scanner ( System.in );

int x;
int result = 0;

System.out.println ("Enter a number");
x = input.nextInt();

{
for ( int counter = 1; counter <= x; counter++ )
{
System.out.printf( "*", counter );
}
System.out.println( );
}

}


}
3/6/2013 11:19:56 AM EDT
[#1]
Stackoverflow is your friend
3/6/2013 11:25:02 AM EDT
[#2]
Geez.  I remember doing these type of problems in the 80s.



OP, someone will be along to help you with your homework shortly.



They may or may not tell you the right answer.
3/6/2013 11:43:50 AM EDT
[#3]
Quoted:
Geez.  I remember doing these type of problems in the 80s.

OP, someone will be along to help you with your homework shortly.

They may or may not tell you the right answer.




I'm sure they will!

On a side note I hate JAVA

Makes me want to

3/11/2013 8:10:29 AM EDT
[#4]
Homework done yet?