第一个程序代码
#include<stdio.h>
int main()
{
int x;
scanf("%d", &x);
printf("%c %c\n", char(x + 'A' - 1), char(x + 'a' - 1));
return 0;
}
第二个程序代码
#include<stdio.h>
#include<math.h>
int main()
{
double x;
scanf("%lf", &x);
double temp = sqrt(x);
int(temp) != temp ? printf("NO\n") : printf("YES\n");
return 0;
}
追问深刻表示是个菜鸟 为什么加入不了 system (“pause”)
追答加system("pause");只是为了领程序停顿, 不会立刻停止,让你可以看到运行结果
如果你的编译器能够让你看到运行结果, 那就没必要加, 如果会立刻结束, 就加上吧
PS:我的编译器不会立刻结束的, 我用的是VS2010
追问谢了 好了