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 are the types of data structures in c?

596


Can the size of an array be declared at runtime?

602


Who developed c language?

637


Explain is it valid to address one element beyond the end of an array?

729


How to implement a packet in C

2391






Why doesnt long int work?

610


What is the scope of local variable in c?

574


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2182


What are the complete rules for header file searching?

667


What is structure pointer in c?

565


What is pivot in c?

564


Explain 'bus error'?

555


Is a pointer a kind of array?

598


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

635


what do u mean by Direct access files? then can u explain about Direct Access Files?

1637