Begin2. Given the side of the square \(a\). Find its area \(S = a^2\).
Solution in Python 3:
a = int(input("Enter the side of the square (a): "))
S = a*a
print("Area of the square (S): ", S)
Solution in C++:
#include<iostream>
using namespace std;
int main(){
double a, s;
cout << "Enter the side of the square (a): ";
cin >> a;
s = a*a;
cout << "Area of the square (S): " << s;
return 0;
}