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 / carol
#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 ? | 1 Yes | 1 No |
Post New Answer View All Answers
Can the sizeof operator be used to tell the size of an array passed to a function?
What is the difference between typedef and #define?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
Is int a keyword in c?
int far *near * p; means
What are the types of unary operators?
Which driver is a pure java driver
What is the use of the function in c?
How do you sort filenames in a directory?
Why should I use standard library functions instead of writing my own?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What does d mean?
What is difference between structure and union in c programming?
Write a program to check whether a number is prime or not using c?
What is printf () in c?