C++ Program to Calculate Area of Square. I have used Dev-C++ IDE for debugging purpose. But you can use any C programming language compiler as per your compiler availability.
HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) |
#include<iostream>#define PI 3.141usingnamespace std;
int side, area;
cout << "Enter the Length of Side : ";
cin >> side;
// Formula to calculate area of square
area = side * side;
cout << "Area of Square : "<< area;
Tech Study passionately delivers stylish and innovative information to programmer and technology lovers. Tech Study is a young and innovative mind having the zeal to do something useful and creative. Our main goal is to offer step by step debugging solutions for programmers.