wap to print the pattern
a
ab
abcd
abcde
Answers
Answered by
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