Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Trojkat {
  3. int a,b,c,h;
  4. Double obliczPowierzchnie (1/2ah);
  5. Double obliczObwod(a+b+c);
  6. public static void
  7. main(String[] args) {
  8. Scanner scan = new Scanner (System.in);
  9. System.out.println("podaj a");
  10. int a = scan.nextLine();
  11.  
  12.  
  13. Scanner scan = new Scanner (System.in);
  14. System.out.println("podaj b");
  15. int b = scan.nextLine();
  16.  
  17.  
  18. Scanner scan = new Scanner (System.in);
  19. System.out.println("podaj c");
  20. int c = scan.nextLine();
  21.  
  22.  
  23. Scanner scan = new Scanner (System.in);
  24. System.out.println("podaj h");
  25. int h = scan.nextLine();
  26.  
  27. void obliczPowierzchnie (1/2ah);
  28. System.out.print("powierzchnia jest równa + obliczPowierzchnie");
  29.  
  30. void obliczObwod(a+b+c);
  31. System.out.print("obwód jest równy + obliczObwod");
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement