CPP_Basics_Syntax/第一讲 变量、输入输出、表达式与顺序语句/615.cpp

12 lines
152 B
C++

#include <cstdio>
using namespace std;
int main()
{
int x;
float y;
scanf("%d%f", &x, &y);
printf("%.3f km/l", x / y);
return 0;
}