Professional Documents
Culture Documents
*/
package dowhileeleazar;
import java.util.Scanner;
/**
* @author Eleazar
*/
/**
*/
S = input.nextDouble();
E = input.nextDouble();
psi=S;
do
mmHg = psi*(760/14.7);
ftH2O = psi*(33.899/14.7);
bar = psi*(101325/(14.7*100000));
}
while
(psi!=(E+5.0));
}
If and else statements
package helloengineerjerard1;
import java.util.Scanner;
/**
* @author Eleazar
*/
/**
*/
D = input.nextDouble();
V = input.nextDouble();
Density = input.nextDouble();
Viscosity = input.nextDouble();
Re = (D*V*Density)/Viscosity;
else{
else