实验5-6 使用函数判断完全平方数 (10分) 代码: int IsSquare( int n ) { int i = 0; for (i = 0; i <= n; i++) { if (i * i == n) return 1; } return 0; }