油耗
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user