Best Answer

#include<stdio.h> #include<string.h> #include<conio.h> int count=0; char arr1[20],arr2[20]; int main() { int j; arr1[0]=1; arr1[1]='\0'; int flag=3; for(j=3;j>=-1;j--) printf(" "); printf("1\n"); while(flag>=0) { for(j=3;j>=count;j--) printf(" "); arr2[0]=arr1[0]; arr2[strlen(arr1)]=arr1[strlen(arr1)-1]; for(j=1;j<=(strlen(arr1)-1);j++) arr2[j]=arr1[j]+arr1[j-1]; arr2[strlen(arr1)+1]='\0'; for(j=0;j<strlen(arr2);j++) printf("%d ",arr2[j]); for(j=0;j<=strlen(arr2);j++) arr1[j]=arr2[j]; flag--; count++; printf("\n\n"); } getch(); }

Q: How do you print the numbers 1 11 121 1331 14641in pyramid form in c?

Write your answer...

Submit

Still have questions?

Continue Learning about Other Math

Surprisingly, the answer is 11, 11 and 11! 1331 is the perfect cube of 11. 11 x 11 x 11 = 1331!

1331 and 2197

11 cubed equals 1331

65.5 :) :)

11 times 11 times 11=1331

Related questions

buy aprinter and somepaper and then go on wordput numbers in and click print and click color and youhave your numbers

NO. The prime numbers of 1331: 11 x 11 11

1331 = 11 x 11 x 11

Surprisingly, the answer is 11, 11 and 11! 1331 is the perfect cube of 11. 11 x 11 x 11 = 1331!

3993

Any of its factors including itself

Any of its factors including itself

1331 and 2197

We need to find what percent of 2000 is 1331.x% of 2000 is 1331.(x / 100) *2000 = 1331.x = 1331*100/2000x = 1331/20x = 66 (11/20)Or x = 66.55 66.55 percent of 2000 is 1331.Source: www.icoachmath.com

1,331 = 1 x 1,331and1,331 = 11 x 121

Yes, 1331 is a palindrome

1, 11, 121, 1331.