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
Do you know the use of 'auto' keyword?
What are header files in c programming?
What is wrong in this statement?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
Compare interpreters and compilers.
What is wrong in this statement? scanf(ā%dā,whatnumber);
What does c mean before a date?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
i got 75% in all semester am i eligible for your company
Are the variables argc and argv are local to main?
Explain how can you tell whether a program was compiled using c versus c++?
How can I find out if there are characters available for reading?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
How can I convert a number to a string?
What does void main () mean?