write a program in Java to print the following series using loop
Attachments:
Answers
Answered by
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()
}
}
for (int i=5;i>=1;i--)
{
for (int j=5;j>=i;j--)
{
Sop(j);
}
Sopln()
}
}
Sumanmi:
I have changed the ++ with --
Answered by
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