Ques7.)
1
11
121
1331
14641
161051
1771561
19487171
Ans.)
package practice;
public class pattern1 {
public static
void main(String args[])
{int x=0;
for(int
i=1;i<=8;i++)
{
for(int
j=x;j<i;j++)
{
System.out.printf("%d", (int)Math.pow(11, j));
}
x++;
System.out.println("");
}
}
}
No comments:
Post a Comment