#include <stdio.h>
#include <math.h>
int main()
{
/* 1.自然数n1・n2(n1<n2)を入力し、n1からn2までの数の合計sを計算しその結果を表示しなさい
ただし、sは次式で表せれるものとする。s=n2・(n2+1)-(n1-1)/2
*/
{
int n1, n2;
double s;
s = n2 * (n2 + 1) - (n1 - 1) / 2.0;
}
/* 2. 球の半径rを入力し、球の体積vを計算し、少数第2位まで表示しなさい
π=3.1415
半径を入力してください-->10
答えは4188.79になります。
*/
{
double r, v;
v = 4.0 * M_PI * r * r * r / 3;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CgppbnQgbWFpbigpCnsKICAvKiAg77yR77yO6Ieq54S25pWw772O77yR44O7bjLvvIhuMTxuMu+8ieOCkuWFpeWKm+OBl+OAgW4x44GL44KJbjLjgb7jgafjga7mlbDjga7lkIjoqIjvvZPjgpLoqIjnrpfjgZfjgZ3jga7ntZDmnpzjgpLooajnpLrjgZfjgarjgZXjgYQKICAgIOOAgOOAgOOBn+OBoOOBl+OAge+9k+OBr+asoeW8j+OBp+ihqOOBm+OCjOOCi+OCguOBruOBqOOBmeOCi+OAgu+9k++8nW4y44O7KG4yKzEpLShuMS0xKS8yCiAgKi8KICB7CiAgICBpbnQgbjEsIG4yOwogICAgZG91YmxlIHM7CgogICAgcHJpbnRmKCJuMSA9ICIpOwogICAgc2NhbmYoIiVkIiwgJm4xKTsKICAgIHByaW50ZigibjIgPSAiKTsKICAgIHNjYW5mKCIlZCIsICZuMik7CiAgICBzID0gbjIgKiAobjIgKyAxKSAtIChuMSAtIDEpIC8gMi4wOwogICAgcHJpbnRmKCJhbnN3ZXIgPSAlZlxuIiwgcyk7CiAgfQogIC8qICAyLiDnkIPjga7ljYrlvoTvvZLjgpLlhaXlipvjgZfjgIHnkIPjga7kvZPnqY3vvZbjgpLoqIjnrpfjgZfjgIHlsJHmlbDnrKzvvJLkvY3jgb7jgafooajnpLrjgZfjgarjgZXjgYQKICAgIM+A77ydMy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