#include int main(void) { int n, ans; printf("nの二乗を計算します。1から45の整数を入力してください。"); scanf("%d",&n); ans = n*n; printf("ans=%d",ans); return 0; }