Computer Science, asked by Tejal5541, 8 months ago

wap to print the pattern
a
ab
abcd
abcde

Answers

Answered by amansarrafas24payxgs
1

Answer:

class Pattern

{

public void main(String str)

{

for(int i = 0;,i < str.length();i++)

{

char ch = str.charAt(i);

System.out.println(ch);

}

}

}

I hope you find it useful... If you have any query do comment, I will try to solve it...

Similar questions