Computer Science, asked by hafisroshanpt, 1 year ago

write a program in Java to print the following series using loop​

Attachments:

Answers

Answered by Sumanmi
2
let me begin directly from the loop

for (int i=5;i>=1;i--)

{

for (int j=5;j>=i;j--)

{

Sop(j);

}

Sopln()

}

}

Sumanmi: I have changed the ++ with --
Sumanmi: plz Mark me as the brainliest
hafisroshanpt: thanks
Sumanmi: wlcm
Answered by Anonymous
1

Import java.io.*;

class Pattern

{

public static void main()throws IOException

for(int i=5;i>=1;i++)

{

for(int j=i;j>=1;j++)

}

System.out.println(j);

}

Hope it helps...

Please mark brainliest

Similar questions