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’s the special use of UNIONS?
What is the use of a static variable in c?
how logic is used
int far *near * p; means
Does free set pointer to null?
What is table lookup in c?
What is the difference between malloc() and calloc()?
write a program to create a sparse matrix using dynamic memory allocation.
What does c mean?
Write a code of a general series where the next element is the sum of last k terms.
What is the code in while loop that returns the output of given code?
Can we declare variable anywhere in c?
What does printf does?
What standard functions are available to manipulate strings?
What functions are in conio h?