
编程题
captain of An
这个作者很懒,什么都没留下…
展开
-
PTA编程题 7-16 格式化输入输出 (10 分)
7-16 格式化输入输出 (10 分)本题要求格式化输入数据三个数据,第一个是整数,第二个是实数,第三个是一个字符。然后格式化输出这三个数据。输入格式:在一行输入三个数据,a是整数,b是实数,c是字符。格式为: a=整数,b=实数:c=字符。输出格式:输出为a=整数,b=实数,c=字符 。其中整数的宽度为10,左对齐,并且数字的前面带正负号;实数的宽度为20,其中小数3位;字符不做特别要...原创 2019-01-02 13:50:00 · 11347 阅读 · 8 评论 -
PTA编程题 7-5 Body Mass Index Calculator (10 分)
7-5 Body Mass Index Calculator (10 分)To determine whether a person is overweight or obese, you can use a measure called the body mass index (BMI). The formulas for calculating BMI are or Create a B...原创 2019-01-02 15:36:34 · 642 阅读 · 0 评论