employer cover photo
employer logo
employer logo

FiftyFive Technologies

Engaged Employer

FiftyFive Technologies Interview Question

Write the code to print a pattern in java.

Interview Answer

Anonymous

Mar 21, 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(); }