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 / 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 |
Post New Answer View All Answers
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
Explain how do you determine the length of a string value that was stored in a variable?
What does %p mean?
Is printf a keyword?
What is the purpose of scanf() and printf() functions?
What tq means in chat?
What is #line used for?
What’s a signal? Explain what do I use signals for?
What are the different types of data structures in c?
Which header file is used for clrscr?
In C language, a variable name cannot contain?
What is structure in c explain with example?
What is the default value of local and global variables in c?
Describe how arrays can be passed to a user defined function