write a program using for loop to print the following pattern :
1
1 1
1 2 1
1 4 6 4 1
Please answer this question
Answers
Answered by
1
Answer:
Not sure about the language you need the program in, but here is one written in Java.
Explanation:
class pattern
{
public static void main(String args[])
{
for(int i=0;i<5;i++)
{
if(i==3)
continue;
System.out.println((int)Math.pow(11,i));
}
}
}
Similar questions
Science,
1 month ago
Social Sciences,
1 month ago
History,
4 months ago
English,
10 months ago
Hindi,
10 months ago