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

12 lines
152 B
C++
Raw Normal View History

2023-03-24 10:55:54 +08:00
#include <cstdio>
using namespace std;
int main()
{
int x;
float y;
scanf("%d%f", &x, &y);
printf("%.3f km/l", x / y);
return 0;
}