untitled
int A = (int)Math.pow(num, 2);
第一引数には乗算したい元の値第二引数にはかける乗(2乗なら「2」)
(int)を書かないとdouble型になるので注意
投稿日
カテゴリー:
投稿者:
kataoka
タグ: