#include <iostream>
using namespace std;
int main() {
    int n;
    cin >> n;
    auto square = [](int x) { return x * x; };
    cout << "Square=" << square(n);
    return 0;
}
Solution Details
👉 In simple words:
 It’s like writing a tiny throwaway function right where you need it, instead of defining one above main().
Significance for Embedded Developers
Input
5
Expected Output
Square=25