Area of parallelogram

Report a typo

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 bb and hh.

A parallelogram of height 8 and base 10

Sample Input 1:

8 10

Sample Output 1:

80
Write 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);
}
}
___

Create a free account to access the full topic