C语言 英制单位转公制~

East

编辑个性签名

正式会员
注册
2020/04/24
消息
267
金粒
359.99金粒
C:
#include<stdio.h>

int main()
{
    int x;
    int y;
    
    scanf("%d %d",&x,&y);
    
    printf("%f",((x+y/12)*0.3048));
    
    return 0;
}

yhsuRJ.jpg水
 
Python:
x = int(input())
y = int(input())

print((x+y/12)*0.3048)
 

在线会员

  • Drbiaodi
  • 波旬W
  • 七六
  • AnBirthd
  • KURE
  • Sing_
  • mrchen
  • wldxxs
  • mc_xiaoQAQ_
  • 秋瑾瑾
  • 唯喵
  • 大喵
  • Kalpa
  • woqushark
后退
顶部 底部