IT Programming Solutions
Computer Programming and Web Development
Mystery 2 - Java Sample Program
//Mystery2.java
public class Mystery2
{
public static void main( String[] args )
{
int count = 1;
while ( count <= 10 )
{
System.out.println( count % 2 == 1 ? "****" : "++++++++" );
++count;
} // end while
} // end main
} // end class Mystery2
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment