What will be the output of following code: class pattern { public static void main(String arts[]) String a = "WELCOME", b; for(i=0; i<=a.length(); i ++;) { b= a.substring(0,i); system.out.print(b); } } }
Reveal answer
Fill a bubble to check yourself