第37863题 判断题
如果 N 和 M 均为整数,下列 C++ 代码则可以判断正整数 N 是 M 的平方。比如 9 是 3 的平方。
int N, M;

cout << "请输入正整数N:";
cin >> N;
cout << "请输入整数M:";
cin >> M;

if (int(sqrt(N)) == abs(M))
    printf("%d是%d的平方\n", N, M);
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析