Java!!! pilne !!! napisz program w jezyku java ktory oblicza pole rownolegloboku o podanym boku a=3.7 kacie alfa 30° oraz b={1...100} ... daje maxa bo pilnie potrzebuje !!!!!
public class JavaApplication9 { /** * @param args the command line arguments */ public static void main(String[] args) { final double a = 3.7; final double alfa = Math.PI / 6.0;
for (double b = 1.0; b <= 100.0; b++) { double P = Math.sin(alfa) * a * b; System.out.println("Pole wynois: " + P); } } }
public class JavaApplication9 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
final double a = 3.7;
final double alfa = Math.PI / 6.0;
for (double b = 1.0; b <= 100.0; b++)
{
double P = Math.sin(alfa) * a * b;
System.out.println("Pole wynois: " + P);
}
}
}