Computer Science, asked by Itzraisingstar, 5 months ago

Write a program to print the Floyd's triangle[Given below]

1
2 3
4 5 6
7 8 9 10
11 12 13 14 15

no spams quality answer required:)

Answers

Answered by Anonymous
1

Answer:

Explanation:

import java.util.Scanner;

class Pattern 3

{

     static void Floyd Triangle()

     {

          int c,d,num=1;

          for(c=1;c<=5;c++)

          {

                 for(d=1;d<=c;d++)

                  {

                           system.out.print(num+"");

                           num ++;

                  }

                  System.out.println();

          }

     }

}  

Answered by Anonymous
3

Answer:

hello...............

Attachments:
Similar questions