Programing made easy
Friday, December 23, 2011
Program to
import java.util.*;
public class Ch2Q32
{
public static void main(String[] args)
{int n;
for(int i = 1; i <= 5; i++)
{for(int j = 1; j <= i; j++)
System.out.printf("%-3d\t", (i+j+1)%2);
System.out.println();
}
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment