MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / main

Function main

Lab_01/12_square.cpp:8–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace std;
7
8int main()
9{
10 cout << "\t\tC++ program to Calculate Area of Square." << endl;
11 float a, Area;
12 cout << "Please enter the value for the side of Square: ";
13 cin >> a;
14
15 if (a > 0) {
16 Area = a * a;
17 cout << "The area of Square is " << Area << ";" << endl;
18 }
19 else {
20 cout << "Negetive numbers cannot be applied !!!" << endl;
21 }
22
23 system("pause");
24 return 0;
25}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected