码迷,mamicode.com
首页 > 其他好文 > 详细

no.6 字符串和格式化输入/输出04

时间:2017-09-26 21:21:22      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:logs   scan   main   double   字符   oid   har   pre   clu   

#include<stdio.h>

void main()
{
	double a,b;
	printf("请输入你的身高:\n");
	scanf("%lf",&a);
	b=a/2.54;
	printf("身高转换为英寸是:%lf cm\n",b);
}

  

no.6 字符串和格式化输入/输出04

标签:logs   scan   main   double   字符   oid   har   pre   clu   

原文地址:http://www.cnblogs.com/ZZiz/p/7598555.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!