Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- float dist,distm,vel,velm,temp,temps,output;
- printf("Insira valores para a distância(km) e a velocidade(km/h): ");
- scanf("%f %f", &dist,&vel);
- temp = (dist/vel);
- distm = 1000*dist;
- temps = temp*3600;
- velm = vel/3.6;
- output = temps;
- printf("O tempo estimado equivale a %.0f segundos que percorrerão %.0f metros numa velocidade estimada de %.2f m/s.",output, distm,velm);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement