编程介的小学生
2019-03-13 15:02一个多项是的公式的计算问题,运用C语言编程技术的实现的方式是
Problem Description
You just need to calculate the sum of the formula: 1^2+3^2+5^2+……+ n ^2.
Input
In each case, there is an odd positive integer n.
Output
Print the sum. Make sure the sum will not exceed 2^31-1
Sample Input
3
Sample Output
10
- 点赞
- 回答
- 收藏
- 复制链接分享
0条回答
为你推荐
- 这是一个C语言判断字符个数程序的相关问题
- c语言
- 1个回答
- 这是一个关于C语言求平年闰年的问题
- c语言
- 3个回答
- 这是一个关于C语言的三目运算符问题
- c语言
- 4个回答
- 这是一个关于C语言输出字符串长度的问题
- c语言
- 1个回答
- 这是一个关于C语言函数库函数的问题
- c语言
- 1个回答
换一换