Tuesday, 31 October 2017

java output problems



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

It print

*
***
*****
****
**

No comments:

Post a Comment