Created
October 4, 2017 12:53
-
-
Save sugiartocokrowibowo/ecd779e4da1232681a1d9a2f2371a708 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class F { | |
| /** | |
| * @param args | |
| */ | |
| public static void main(String[] args) { | |
| Scanner s = new Scanner(System.in); | |
| System.out.println("INPUT"); | |
| System.out.print("a : "); | |
| int a = s.nextInt(); | |
| System.out.println("\nOUTPUT"); | |
| for(int i=1;i<=a;i++){ | |
| for(int j=1;j<=i;j++){ | |
| System.out.print("* "); | |
| } | |
| System.out.println(); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment