write a program to print the series 0,1,1,2,3,4,5....n
Answers
Answered by
3
Answer:
class Series { public static void main(int n) { int add=0; for(int i=2;i<=n;i=i+2) add=add+(i*i); System.out.println(add); } }
Similar questions
Math,
3 months ago
English,
3 months ago
Computer Science,
3 months ago
Science,
8 months ago
Computer Science,
8 months ago
English,
1 year ago
Science,
1 year ago
Hindi,
1 year ago