advictoriam

Untitled

Jan 8th, 2019
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. /**
  2.    A program to draw a filled triangle.
  3. */
  4.  
  5. public class Triangle
  6. {
  7.    public static void main(String[] args)
  8.    {
  9.       System.out.println("   x");
  10.       System.out.println("  xxx");
  11.       System.out.println(" xxxxx");
  12.       System.out.println("xxxxxxx");
  13.    }
  14. }
Add Comment
Please, Sign In to add comment