answersLogoWhite

0

#include


#include


void main()


{


clrscr();


for (int i=1;i<=5;i++) // this for loop controls the line


{


for(int

j=1;j<=i;j++) // this for loop controls the values(1,12,123..)


{


printf("%d",j);


}


printf("\n");


}



getch();


}


User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

ReneRene
Change my mind. I dare you.
Chat with Rene
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
More answers

int main (void) { puts ("1 121 1331 14641"); return 0; }

User Avatar

Wiki User

14y ago
User Avatar

int main (void) { puts ("1 121 12321"); return 0; }

User Avatar

Wiki User

15y ago
User Avatar

There is no such thing as a "magic number". You are probably thinking of magic squares where the sum of each row, column and major diagonal has the same "magic" value.

User Avatar

Wiki User

8y ago
User Avatar

Add your answer:

Earn +20 pts
Q: How do you print 1 121 1331 14641 in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp