Tuesday, 31 October 2017

java output problems for exam



Question 03:
           What does the following code print?
System.out.print( "*" );
System.out.print( "***" );
System.out.print( "*****" );
System.out.print( "****" );
System.out.println( "**" );

It print
***************



No comments:

Post a Comment