Skip to content

Commit

Permalink
Create printing stars
Browse files Browse the repository at this point in the history
  • Loading branch information
suhanigupta23 authored Dec 22, 2023
1 parent e1556d6 commit 6350c6c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions printingstar.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
public class Program
{
public static void main(String[] args)
{
System.out.println("*");
System.out.println("**");
System.out.println("***");
System.out.println("****");
System.out.println("*****");
System.out.print("*\n**\n***\n****\n*****");
}
}

0 comments on commit 6350c6c

Please sign in to comment.