WAP in Java.......!!!!!
Attachments:
Answers
Answered by
8
public class Triangle {
public static void main(String[ ] args) {
String pattern = "54321";
for (int i = 0; i < pattern.length( ); i++)
System.out.println(pattern.substring(i) + " ");
}
}
Similar questions