Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 204 Bytes
int a;
a = 50;
a = constrain(a, 0, 100); // aに50を代入
println(a);
a = -10;
a = constrain(a, 0, 100); // aに0を代入
println(a);
a = 200;
a = constrain(a, 0, 100); // aに100を代入
println(a);