Please solve this java program
Attachments:
Answers
Answered by
0
Answer:public class RightAngledTrianglePattern
{
public static void main(String args[])
{
for( int i=1;i<=5;i++)
{
for(int j=i;j<=5;j++)
{
System.out.println("*");
}
for (int i=2;i<=5;i++);
{
for ( int j=1;j<=i;j++);
{
System.out.println("*");
}
System.out.println();
}
}
}
Explanation:
Similar questions
Math,
5 months ago
Computer Science,
5 months ago
Physics,
10 months ago
India Languages,
10 months ago
Physics,
1 year ago