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
Where are the auto variables stored?
What is the general form of a C program?
how to count no of words,characters,lines in a paragraph.
What are disadvantages of C language.
Do you know the difference between malloc() and calloc() function?
What are the uses of null pointers?
Hi can anyone tell what is a start up code?
What are the keywords in c?
Is flag a keyword in c?
Explain how can you be sure that a program follows the ansi c standard?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
Why #include is used in c language?
write a program to concatenation the string using switch case?
What is character constants?
What are the advantages of c language?