write a program whose output will be-
1
12
123
1234
Answer Posted / aditya nath
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 18 Yes | 12 No |
Post New Answer View All Answers
Explain data types & how many data types supported by c?
When do we get logical errors?
How can I find out how much free space is available on disk?
What is a pragma?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
Is python a c language?
What type of function is main ()?
Explain goto?
Explain how do you determine the length of a string value that was stored in a variable?
What is the difference between functions abs() and fabs()?
What is the purpose of clrscr () printf () and getch ()?
What is the difference between struct and union in C?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Write a program to find factorial of a number using recursive function.