Posted by : Unknown Thursday, 11 June 2015

class Anonymos
{
public static void main(String args[])
{
int i,j,p=5;
for(i=1;i<=4;i++)
{
for(j=0;j<=1;j++)
{
System.out.print(" "+i);
}
System.out.println();
}
System.out.println(" "+p);
}
}

Output:


Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Translate

Popular Post

Total Pageviews

Blog Archive

- Copyright © Learning Java Program - Powered by Blogger -