text: Program to find the area of a Square | CPP program to find the area of a square ; function to find the area ; Driver program
code: #include <iostream> NEW_LINE using namespace std ; int area_fun ( int side ) { int area = side * side ; return area ; } int main ( ) { int side = 4 ; int area = area_fun ( side ) ; cout << area ; return 0 ; }