Input any no. and print all the the numbers that comes
before it like this
for e.g input = 4
0
01
012
0123
01234
plz answer it 2day
Answer Posted / abc
void main()
{
int n,i,j;
printf("enter the number");
scanf("%d",&n);
for(i=0;i<=n;i++)
{
for(j=0;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What are the different file extensions involved when programming in C?
how to write optimum code to divide a 50 digit number with a 25 digit number??
What is masking?
What is the use of header files?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
Mention four important string handling functions in c languages .
Do you have any idea how to compare array with pointer in c?
What is #ifdef ? What is its application?
What is the use of the function in c?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
How can you tell whether a program was compiled using c versus c++?
How can I invoke another program or command and trap its output?
What is a header file?
List out few of the applications that make use of Multilinked Structures?