write a java program to print the Floyd's triangle of n lines, where n is taken as an input from the user
1
23
456
78910 :
n lines
Answers
Answered by
1
Answer:
class Floyd.
int n, num = 1, c, d;
Scanner in = new Scanner(System.
System. out. println("Enter the number of rows of floyd's triangle you want");
n = in. nextInt();
System. out. println("Floyd's triangle :-");
for ( c = 1 ; c <= n ; c++ )
for ( d = 1 ; d <= c ; d++
Similar questions
English,
1 month ago
Social Sciences,
1 month ago
Math,
2 months ago
Math,
2 months ago
Physics,
9 months ago
Math,
9 months ago
India Languages,
9 months ago