Created
March 23, 2017 20:40
-
-
Save asclines/e4f2b12a6c55617fd8f3ceb3724694c3 to your computer and use it in GitHub Desktop.
This file contains 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