#include <stdio.h>
//課題B-1: 1からnまでの和を求めるコードを完成させてください
int sum(int x){
return (1+x)*x*1/2;
}
int main(void) {
int a,b,n;
a = n;
b = sum(a);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Ci8v6Kqy6aGMQi0xOiAx44GL44KJbuOBvuOBp+OBruWSjOOCkuaxguOCgeOCi+OCs+ODvOODieOCkuWujOaIkOOBleOBm+OBpuOBj+OBoOOBleOBhAppbnQgc3VtKGludCB4KXsKICAgcmV0dXJuICgxK3gpKngqMS8yOwp9CgppbnQgbWFpbih2b2lkKSB7CglpbnQgYSxiLG47CiAgICBhID0gbjsKICAgIGIgPSBzdW0oYSk7CiAgICBwcmludGYoIjHjgYvjgoklZOOBvuOBp+OBruWSjOOBryVkIiwgYSxiICk7CglyZXR1cm4gMDsKfQo=