helpx - OpenStudy

hundredcarriageSoftware and s/w Development

Nov 3, 2013 (4 years and 1 month ago)

67 views


import javax.swing.*;
import java.util.Scanner;
import java.io.*;
import java.awt.*;
public class Prog1 {
public Prog1(){
int i,j;
for (i=1;i<5;i++)
{
for(j=i;j<5;j++)
{
System.out.printf("@");
}
for(j=1;j<i;j++) {
System.out.print(j);
}
System.out.printf("\n");
}
}
public static void main(String[] args) {
new Prog1();
}
}