daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Apr 15th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Main {
  2.  
  3.     public static void main(String[] args) {
  4.         go("cevad");
  5.     }
  6.  
  7.     public static void go(String str){
  8.         for (int i=str.length(); i>0; i--){
  9.             System.out.println(str.substring(0,i));
  10.         }
  11.     }
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top