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
Is null a keyword in c?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Is c programming hard?
How are strings stored in c?
What is the size of enum in c?
What is spaghetti programming?
What is #line in c?
What is the difference between int main and void main?
Where in memory are my variables stored?
Difference between MAC vs. IP Addressing
What are the primitive data types in c?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is union in c?
Is it possible to execute code even after the program exits the main() function?