Write a program to produce the following output:
1
2
3
4
5
6
7
8
9
10

Answer Posted / jjh

0
1 0 1
2 1 0 1 2
3 2 1 0 1 2 3
4 3 2 1 0 1 2 3 4
5 4 3 2 1 0 1 2 3 4 5

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is %g in c?

616


How #define works?

614


What is maximum size of array in c?

582


any "C" function by default returns an a) int value b) float value c) char value d) a & b

665


Write a factorial program using C.

643






what are bit fields in c?

601


How are structure passing and returning implemented?

588


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1735


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

656


write a program to create a sparse matrix using dynamic memory allocation.

4373


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

664


What happens if header file is included twice?

653


Why is c called c?

622


How can you tell whether a program was compiled using c versus c++?

619


What is malloc return c?

598