Computer Science, asked by srivastavaakhilesh32, 8 months ago

write a program to print the sum of series 1+4+9+16+25.......n

Answers

Answered by rinkup24rp
1

Answer:

To print series from 1,4,9,16,25,36,49,64,81,100.

#include<stdio.h>

#include<conio.h>

void main()

{

int i;

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

{

printf("\n%d",i*i);

}

getch();

}

Similar questions