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 structure in c definition?
Explain how can type-insensitive macros be created?
What are the types of macro formats?
What is the easiest sorting method to use?
Is c is a middle level language?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What is the use of c language in real life?
Tell us bitwise shift operators?
What do you mean by a local block?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Explain what are global variables and explain how do you declare them?
How can I pad a string to a known length?
Why are algorithms important in c program?
If you know then define #pragma?