#include <iostream> using namespace std; void square(int &n){ n = n * n; } int main() { int a = 4; square(a); cout<< a <<endl; return 0; }
To embed this project on your website, copy the following code and paste it into your website's HTML: