plss answer the program
Attachments:
Answers
Answered by
1
string a="COMPUTER";
int l=a.length();
String f="";
for(int i=(l-1);i>=0;i--)
{
f="";
for(int j=i;j<l;j++)
{
f=f+a.charAt (j)
}
System.out.println(f);
}
int l=a.length();
String f="";
for(int i=(l-1);i>=0;i--)
{
f="";
for(int j=i;j<l;j++)
{
f=f+a.charAt (j)
}
System.out.println(f);
}
Similar questions