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 is operator precedence?

742


What are header files in c programming?

744


what are enumerations in C

825


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

863


What is d scanf?

678






Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

2681


where are auto variables stored? What are the characteristics of an auto variable?

693


What is define directive?

723


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1767


Where static variables are stored in memory in c?

610


What is structure padding in c?

727


What is the difference between constant pointer and constant variable?

842


Explain how can a program be made to print the name of a source file where an error occurs?

807


How can a program be made to print the name of a source file where an error occurs?

840


What are the loops in c?

683