program to print the series 6 11 16 in GW basic
Answers
Answered by
0
given: print series 6 11 16
To Find: next series
solution: here we use a loop that start from 6 and put an limit where we want to end or basically we can also use while loop for infinite series.
#include<stdio.h>
main()
{
int n;
printf ("enter the limit");
scanf ("%d", &n);
for(i=6 ; i <=n ; i=i+5)
{
printf ("%d \n", i );
}
}
Similar questions