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 is the equivalent code of the following statement in WHILE LOOP format?
Explain what are multibyte characters?
What is spaghetti programming?
Can the “if” function be used in comparing strings?
If I have a char * variable pointing to the name of a function ..
What is enumerated data type in c?
How many levels deep can include files be nested?
What is external variable in c?
Are the outer parentheses in return statements really optional?
Can a pointer point to null?
How pointers are declared?
What is action and transformation in spark?
Can you please explain the scope of static variables?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
What is the use of extern in c?