how to find out series of number

0 votes
asked Aug 6 by (120 points)

2 Answers

0 votes
answered Aug 9 by (1,600 points)
Could you please explain a little what you would like to do?
0 votes
answered Aug 9 by (140 points)
To find series of N Natural numbers.

We can use the Following code for C Language.

#include<stdio.h>

int main()

{

int i,n;

printf("Enter the Number of terms\n");

scanf("%d",&n);

for(i=1;i<=n;i++)

printf("%d",i);

return 0;

}
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...