#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;
}