Java

Java - while Statement

Java - while Statement
class ssvwhile 
{ 
public static void main(String arg[]) 
  { 
     int n=1; 

     while(n <=5 ) 
       { 
           int m =1; 

           while(m <= n) 
              { 
                 System.out.print(n); 
                 m = m+1; 
              } 
           System.out.println(); 
           n = n+1; 
      } 
  } 
}
Senthilvelan Sambamoorthy

Senthilvelan Sambamoorthy is working as a Professor in Department of Master of Computer Applications, Paavai Engineering College, Namakkal, Tamilnadu, India, He is Masters in Computers Applications. Having 18+ years of experience and his area of interest is Java, JSP, Servlet, J2EE, C#, PHP, Python ASP.NET, SQL Server and etc.