油耗
This commit is contained in:
parent
da036a3a93
commit
e749379ab0
12
第一讲 变量、输入输出、表达式与顺序语句/615.cpp
Normal file
12
第一讲 变量、输入输出、表达式与顺序语句/615.cpp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include <cstdio>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int x;
|
||||||
|
float y;
|
||||||
|
scanf("%d%f", &x, &y);
|
||||||
|
printf("%.3f km/l", x / y);
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user