package ru.my;

public class MyFirstProgram {

  public static void main(String[] args) {
    hello("me");
    hello("me1");
    hello("me");
    double l = 5;
    System.out.println("Площадь квадрата со стороной " + l + " = " + area(l));

    double a = 4;
    double b = 6;
    System.out.println("Площадь прямоугольника 1 со сторонами " + a + " и " + b + " = " + area(a,b));

    System.out.println("Площадь прямоугольника 2 со сторонами " + a + " и " + b + " = " + area(a,b));
  }

  public static void hello(String smb) {
    System.out.println("Hello, " + smb);
  }
  public static double area(double a, double b) {
   return a*b;
  }
  public static double area(double l) {
    return l * l;
  }
}
@@ -131,24 +131,25 @@
 ello(%22me%22);%0A
+%0A
     double l
@@ -147,17 +147,17 @@
  double 
-l
+q
  = 5;%0A  
@@ -211,17 +211,17 @@
 %D0%BD%D0%BE%D0%B9 %22 + 
-l
+q
  + %22 = %22
@@ -228,17 +228,17 @@
  + area(
-l
+q
 ));%0A%0A   
@@ -479,13 +479,16 @@
 ));%0A
+%0A
   %7D%0A%0A
+  
   pu
@@ -524,24 +524,26 @@
  smb) %7B%0A    
+ 
+ 
 System.out.p
@@ -567,20 +567,25 @@
 + smb);%0A
+  
   %7D%0A
+%0A  
   public
@@ -615,23 +615,16 @@
 ble 
-a, double b
+t
 ) %7B%0A
+   
    r
@@ -633,17 +633,23 @@
 urn 
-a*b
+t * t
 ;%0A  
+ 
+ 
 %7D%0A
+  
   pu
@@ -683,13 +683,25 @@
 ble 
-l
+a, double b
 ) %7B%0A
+  
     
@@ -711,15 +711,15 @@
 urn 
-l * l;%0A
+a*b;%0A  
   %7D%0A

Revert "расчет площадей"