Computer Science, asked by ravi3821, 1 year ago

string program in java to print TIGER from right to left ex
R E G I T
R E G I
R E G
R E
R

Answers

Answered by nitish8089
5
class Help{
public static void main(String... args) {
String="TIGER";
for(int i=0;I<str. length() ;I++) {
for(int j=(str. length()) -1;j>=I;j++) {
System. out. print(str. charAt(j)) ;}
System. out. println() ;
}
}
}
If this deserve brainliest then mark out
Similar questions