properly rename october 2013 mispell

This commit is contained in:
Xevion
2020-02-22 05:48:28 -06:00
parent 22ed622f05
commit f1529d4a14
103 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import static java.lang.System.*;
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;
public class problem8 {
public static void main(String[] args) throws FileNotFoundException {
File input = new File("input.dat");
Scanner read = new Scanner(input);
read.nextLine();
while(read.hasNextInt()) {
String result = "";
int n = read.nextInt();
for(int x = 1; x < n + 1; x++) {
result += multiply(" ", n - x) + multiply("C", x) + "\n";
}
out.println(result);
}
}
static String multiply(String str, int n) {
String output = "";
for(int i = 0; i < n; i++) {
output += str;
}
return output;
}
}