Write a program to generate following pattern.
3
33
333
3333
33333
Answers
Answered by
3
In Java
class pattern
{
public static void main(String args[])
{
int i, j;
for(i = 1; i<=5: i++)
{
for(j=1; j<=i; j++)
{
System.out.print("3");
}
System.out.println();
}
}
Answered by
1
Answer:
2) -->
Similar questions