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 pointers in c with example?
What is the usage of the pointer in c?
What are the c keywords?
What is the use of sizeof?
Disadvantages of C language.
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
`write a program to display the recomended action depends on a color of trafic light using nested if statments
What is the meaning of 2d in c?
What are derived data types in c?
Is c dynamically typed?
I came across some code that puts a (void) cast before each call to printf. Why?
What is #line used for?
What are the functions to open and close file in c language?
What is the use of a semicolon (;) at the end of every program statement?
What is modeling?