Your task is to declare a lambda expression named square that takes an integer and returns its square.
The program will read one integer from input and then call:
cout << "Square=" << square(n);
Example Input:
5
Output:
Square=25
Input:
-3
Square=9
Test Cases
Test Results
Input
Expected Output