Improved files and folders name conventions and moved lost files to Misc folder

This commit is contained in:
DESKTOP-0VAEMFL\joaom
2017-10-28 12:58:07 +01:00
parent 2128c7a15d
commit 467b917416
27 changed files with 525 additions and 525 deletions

17
Misc/FloydTriangle.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();
}
}
}