how can i make a program with this kind of output..

Enter a number: 5
0
01
012
0123
01234
012345
01234
0123
012
01
0

Answer Posted / vignesh1988i

A SMALL chnge in the above program... in first for loop 'n'
must be changed as 'm'

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you be sure that a program follows the ANSI C standard?

1116


What is mean by data types in c?

542


What is the difference between constant pointer and constant variable?

738


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

656


What is the meaning of typedef struct in c?

579






What is the difference between abs() and fabs() functions?

597


Can include files be nested? How many levels deep can include files be nested?

649


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

643


What is the use of bit field?

625


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

651


Why n++ execute faster than n+1 ?

1820


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

770


What is the purpose of scanf() and printf() functions?

707


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

620


Why are all header files not declared in every c program?

592