Computer Science, asked by samriddhiyadav10, 4 months ago

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 riyatantiya28
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