Home C 46. Series 4 46. Series 4 / August 03, 2017 Code: #include<stdio.h> int main() { int n,i,j=6,sum=5; scanf("%d",&n); for (i=1;i<=n;i++) { printf("%d ",j); j=j+sum; sum=sum+5; } return 0; }
No comments