Write a program in c to print
1
121
12321
1234321
123454321

Answer Posted / smita adhikari

a = 1
FOR i = 1 TO 5
PRINT a * a
a = a * 10 + 1
NEXT i
END

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the && operator do in a program code?

663


What is the explanation for modular programming?

655


what are bit fields in c?

580


What is the scope of an external variable in c?

544


How to Throw some light on the splay trees?

593






What is the difference between NULL and NUL?

695


What are examples of structures?

565


Is main a keyword in c?

605


Can you please compare array with pointer?

593


What is use of #include in c?

570


How can you find out how much memory is available?

595


Is there any demerits of using pointer?

598


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

673


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

630


What is the explanation for cyclic nature of data types in c?

613