write a program whose output will be-
1
12
123
1234
Answer Posted / devi
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=1;i<=4;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 51 Yes | 15 No |
Post New Answer View All Answers
what is stack , heap ,code segment,and data segment
Is linux written in c?
What are static variables in c?
What are c identifiers?
What is the modulus operator?
int i=10; printf("%d %d %d", i, i=20, i);
Explain how to reverse singly link list.
What are conditional operators in C?
What is difference between structure and union in c?
Define the scope of static variables.
write a program to print data of 5 five students with structures?
Can 'this' pointer by used in the constructor?
Why calloc is better than malloc?
Explain what is a stream?
find the sum of two matrices and WAP for it.