PTA《C语言程序设计实验与习题指导(第3版)》题目集 实验5-6 使用函数判断完全平方数 (10 分)
本题要求实现一个判断整数是否为完全平方数的简单函数本题要求实现一个判断整数是否为完全平方数的简单函数。函数接口定义:int IsSquare( int n );裁判测试程序样例:#include <stdio.h>#include <math.h>int IsSquare( int n );int main(){ int n; scanf("%d", &n); if ( IsSquare(n) )