You will learn about C++ program to calculate the area of square using a function and without function.

For the better understanding of this program you have to know more about the following C++ programming topic(s) :

C++ function

For the better understanding of this program you have to know more about the following C++ programming topic(s) :

C++ function

#### The formula is to calculate the area of a square is:

Area = (side length) * (side length)

### Example#1.0: C++ program to calculate the area and perimeter of square without function:

#### Output

Enter the side lenght of square

25.5

Area of Square is 650.25

Perimeter of Square is 102

### Example#1.1: C++ program to calculate the area and perimeter of square using function:

#### Output

Enter the side lenght of square

25.5

Area of Square is 650.25

Perimeter of Square is 102

Press Enter to return to Quincy...

## Post a Comment