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
Why void is used in c?
What are the different types of control structures?
What does *p++ do?
What is size of union in c?
Whats s or c mean?
What is the purpose of ftell?
Describe newline escape sequence with a sample program?
Why we not create function inside function.
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Why is it that not all header files are declared in every C program?
How can I avoid the abort, retry, fail messages?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
Why is c faster?
a c code by using memory allocation for add ,multiply of sprase matrixes
Explain how can I convert a string to a number?