Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
int n;
printf("enter the terms :");
scanf("%d",&n);
count=1;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=(i);j++)
printf("%d ",count++);
printf("\n");
}
getch();
}
thank u
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is an identifier?
What is a dynamic array in c?
Why void main is used in c?
Explain what is a const pointer?
How to find a missed value, if you want to store 100 values in a 99 sized array?
Describe wild pointers in c?
please explain every phase in the "SDLC" in the dotnet.
Write a program for Overriding.
How can I make it pause before closing the program output window?
Write a program to print “hello world” without using semicolon?
What are the benefits of c language?
How does pointer work in c?
What is the use of bitwise operator?
What are the two forms of #include directive?
What is the difference between a string and an array?