Question d’entretien chez FiftyFive Technologies

Write the code to print a pattern in java.

Réponse à la question d'entretien

Utilisateur anonyme

21 mars 2023

I wrote the following code : int a=1; for(int i=0;i<5;i++){ for(int j=0;j<=i;j++){ System.out.print(a); a++; } System.out.println(); }