Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- int comp_estrada, dist_ped, custo_km, val_ped, ped, km, valor;
- scanf("%d %d", &comp_estrada, &dist_ped);
- scanf("%d %d", &custo_km, &val_ped);
- ped=comp_estrada/dist_ped*val_ped;
- km=custo_km*comp_estrada;
- printf("%d", ped+km);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement