According to the formula, the area of a parallelogram is the result of the multiplication of the base and the height of the figure. Call the method countAreaOfParallelogram that calculates the area of the parallelogram with the following parameters and .
Calling methods
Area of parallelogram
Report a typo
Sample Input 1:
8 10Sample Output 1:
80Write a program in Java 17
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// call the method here
}
// Do not change code below
public static void countAreaOfParallelogram(int b, int h) {
System.out.println(b * h);
}
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.