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
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is %d used for?
What is identifiers in c with examples?
Is c still used?
What is the use of linkage in c language?
Explain how can you avoid including a header more than once?
Can a local variable be volatile in c?
Explain the advantages of using macro in c language?
What is an expression?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
What is the difference between array and pointer in c?
What does the && operator do in a program code?
Give me the code of in-order recursive and non-recursive.
Explain the advantages and disadvantages of macros.
What are the advantages of using new operator as compared to the function malloc ()?