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
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Is null a keyword in c?
What is void pointers in c?
Did c have any year 2000 problems?
What is switch in c?
What are types of functions?
What is 'bus error'?
What tq means in chat?
How do you print only part of a string?
Explain union.
What are the scope of static variables?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
What are pointers? What are different types of pointers?
Explain the difference between exit() and _exit() function?
How can I open files mentioned on the command line, and parse option flags?