Program for Area Of Square after N | CPP program to find the area of the square ; Function to calculate area of square after given number of folds ; Driver Code
#include <bits/stdc++.h> NEW_LINE using namespace std ; double areaSquare ( double side , double fold ) { double area = side * side ; return area * 1.0 / pow ( 2 , fold ) ; } int main ( ) { double side = 4 , fold = 2 ; cout << areaSquare ( side , fold ) ; return 0 ; }