Can anyone help me with this please? Need to print the below
values.. Thanks
1
1 2
1 2 3
1 2 3 4
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / mohit (firozabad, a.d.college)
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=1;i<=4;i++)
{
for(j=1;j<=i;j++)
printf("%d",j);
}
printf("\n");
getch();
}
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
#include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); } what is the output for this?
What is C++
What is conio h in c?
How do you determine the length of a string value that was stored in a variable?
Why can't I perform arithmetic on a void* pointer?
What is the difference between macros and inline functions?
what is the different between if-else and switch statment (other than syntax)
26 Answers CTS, Oracle, Scorpos,
What are identifiers in c?
What are the advantages of using linked list for tree construction?
Distinguish between actual and formal arguments.
difference between string and array?
Explain what is meant by 'bit masking'?