當前位置:編程學習大全網 - 電腦編程 - 誰能幫我設計2個編程 1.輸入字母序號,輸出相應的大小寫字母。輸入1 ,輸出A,a 輸入26,輸出 Z,z

誰能幫我設計2個編程 1.輸入字母序號,輸出相應的大小寫字母。輸入1 ,輸出A,a 輸入26,輸出 Z,z

第壹個程序代碼

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

}

  • 上一篇:打開博途v15找不到許可證step7-basic
  • 下一篇:海灣消防設備警鈴誤報,壹插上8301模塊就會報警,但模塊的動作燈沒有亮,
  • copyright 2024編程學習大全網