Computer Science, asked by singhsuryansh996, 1 year ago

WAP to display the following pattern PRTV PRT PR P

Answers

Answered by akhilarul324
1

public class akh

{

public static void main(String args[])

{

String a="PRTV";

int l,len=a.length();

for(l=len;l>0;l--)

{

System.out.println(a.substring(0,l));

}

}

}

THIS ANSWER IS DONE BY A EXCELLENT PROGRAMMER

YOU CAN LEARN JAVA IN YOUTUBE IN CHANNEL NAME AKHIL ANDROID

I AM GOING TO UPLOAD VIDEO ABOUT JAVA HERE ONWARDS

Similar questions