Skip to content

Instantly share code, notes, and snippets.

@GuilhermeManzano
Created September 15, 2020 00:27
Show Gist options
  • Save GuilhermeManzano/849a636a5a7e21b832b6e8a965b7da3a to your computer and use it in GitHub Desktop.
Save GuilhermeManzano/849a636a5a7e21b832b6e8a965b7da3a to your computer and use it in GitHub Desktop.
package exerciciosJava;
public class Cavalos {
public static void main(String[] args) {
double m, h, t, cavalos;
m = 21;
h = 2.2;
t = 1.4;
cavalos = (m * h / t) / 745.6999;
System.out.println("A quantidade de cavalos necessários é " + cavalos);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment