print the pattern in java.....:
1
11
121
1331
14641
Answers
Answered by
29
Hello!!!
Question:
Print the pattern in java.
1
11
121
1331
14641.
Answer:
public class Program
{
public static void main(String[] args) {
int i;
for( i=0;i<=4;i++){
int z=(int)Math.pow(11,i);
System.out.println(z);
}
}
}
Hope it helps:)
Question:
Print the pattern in java.
1
11
121
1331
14641.
Answer:
public class Program
{
public static void main(String[] args) {
int i;
for( i=0;i<=4;i++){
int z=(int)Math.pow(11,i);
System.out.println(z);
}
}
}
Hope it helps:)
Attachments:
Answered by
7
Java Program:
public class Main{
public static void main(String[] args) {
for(int i=0; i<=4; i++)
System.out.println((int)Math.pow(11,i));
}
}
it is a program to print powers of 11.
like,
Similar questions
Computer Science,
7 months ago
Math,
7 months ago
English,
7 months ago
Social Sciences,
1 year ago
English,
1 year ago
Math,
1 year ago
Math,
1 year ago