#include <stdio.h>
int main() {
int km_total;
double total_gasto, consumo_medio = 0;
scanf("%d",&km_total);
scanf("%lf",&total_gasto);
consumo_medio = km_total / total_gasto;
printf("%.3lf km/l",consumo_medio);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: