Facebook
From Mammoth Iguana, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 239
  1. package siemasiema;
  2.  
  3. public class figury_przestrzenne {
  4. int a,objetosc,pole;
  5. int objetoscs;
  6. double poles,objetoscw,polew;
  7. double r,h,l;
  8. double pi=3.14;
  9. void objetosc_szescianu() {
  10.         objetosc=a*a*a;
  11.         System.out.println("objetosc stozka wynosi:"+objetosc);
  12. }
  13. void pole_szescian() {
  14.         pole=6*(a*a);
  15.         System.out.println("pole szescianu wynosi :"+pole);
  16. }
  17. void objetosc_stozka() {
  18.         objetoscs=(int) ((Math.PI*Math.pow(r, 2)*h)/3);
  19. }
  20. void pole_stozka() {
  21.         poles=pi*r*(r+l);
  22.         System.out.println("pole stozka wynosi :"+poles);
  23. }
  24. void objetosc_walec() {
  25.         objetoscw=pi*Math.pow(r, 2)*h;
  26.         System.out.println("objetosc walca wynosi :"+objetoscw);
  27. }
  28. void pole_walec() {
  29.         polew=2*pi*Math.pow(r, 2)+2*pi*r*h;
  30.         System.out.println("pole walca wynosi :"+polew);
  31. }
  32. void objetosc_kula() {
  33.        
  34. }
  35. void pole_kula() {
  36.        
  37. }
  38.         public static void main(String[] args) {
  39.                
  40.  
  41.         }
  42.  
  43. }
  44.