area of a parallelogram with 4 sides code example Example: area of parallelogram Area of Parallelogram = Height * Base