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
what are the advantages of a macro over a function?
What is keyword with example?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
How can I ensure that integer arithmetic doesnt overflow?
What are the keywords in c?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
Suggesting that there can be 62 seconds in a minute?
Is c language still used?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What is merge sort in c?
What is wrong with this statement? Myname = 'robin';
Do you know the use of fflush() function?