PLEASE HELP ME FAST....
write a java program of pattern....
MORAL
ORAL
RAL
AL
L
Answers
Answered by
0
Answer:
import java.util.*;
public class pattern
{
public static void main (String args[])
{
Scanner in = new Scanner (System.in);
String s="MORAL";
int l= s.length();
for(int i=0;i<1;i++)
{
for( int j=0;j<1;j++)
{
System.out.print(s.charAt(j));
}
System.out.println();
}
}
}
Explanation:
output
MORAL
ORAL
RAL
AL
L
Similar questions