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
Math,
3 months ago
Math,
3 months ago
Social Sciences,
3 months ago
Hindi,
8 months ago
Chemistry,
11 months ago