File clean-up

This commit is contained in:
KylerSmith
2017-07-09 16:29:00 -07:00
parent 5fec65b247
commit ae7aba0b44
21 changed files with 14 additions and 14 deletions

17
Misc/ft.java Normal file
View File

@@ -0,0 +1,17 @@
import java.util.Scanner;
class FloydTriangle {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number of rows which you want in your Floyd Triangle: ");
int r = sc.nextInt(), n = 0;
for(int i=0; i < r; i++) {
for(int j=0; j <= i; j++) {
System.out.print(++n + " ");
}
System.out.println();
}
}
}