Computer Science, asked by roquaiyyarashid0, 3 months ago

Wap in c to print 2,6,12,20....upto 20th term using for loop​

Answers

Answered by CoderRishav
1

#include<stdio.h>

int main()

{

int n,i;

printf("Enter the range of number(Limit):");

scanf("%d",&n);

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

{

printf("%d ",(i*i)-i);

}

}

Similar questions