Can anyone help me with this please? Need to print the below
values.. Thanks
1
1 2
1 2 3
1 2 3 4
Answer Posted / hari
#include<stdio.h>
main()
{
int i,j= 0;
for(j= 1;j<=5 ;j++)
{
for(i=1;i<=j;i++)
printf("%d ",i);
printf("\n");
}
}
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Explain how can I write functions that take a variable number of arguments?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
int i=10; printf("%d %d %d", i, i=20, i);
Give the rules for variable declaration?
I heard that you have to include stdio.h before calling printf. Why?
How many parameters should a function have?
Differentiate between new and malloc(), delete and free() ?
Explain how can I remove the trailing spaces from a string?
Can we replace the struct function in tree syntax with a union?
What is the best style for code layout in c?
What is const and volatile in c?
What is the use of bitwise operator?
swap 2 numbers without using third variable?
Is fortran faster than c?
Why we use int main and void main?