Write a C++ Program to calculate and print the area of square with given height and width.


 #include<iostream>

using namespace std;

int main()

{

int height, width, area;

height = 5;

width = 4;

area = height * width;

cout<<"Area of Square = "<<area;

}

OUTPUT

Area of Square = 20

No comments:

Post a Comment