Created
March 23, 2017 20:40
-
-
Save asclines/765a61910478705175b694df3460d77f 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.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class Solution { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
int cases = scan.nextInt(); | |
for(int i = 0; i < cases; i++) { | |
String line = ""; | |
for(int j = 0; j< cases; j++) { | |
if(cases-1-i > j){ | |
line += " "; | |
} | |
else { | |
line += "#"; | |
} | |
} | |
System.out.println(line); | |
} | |
} | |
} | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment