#include <iostream>
inline int Square (int x) {// this fn replaces the while code of square(val+1);
return x* x;
}
//#define Square (x) x*x will get some buggs here
int main() {
using namespace std;
int val = 5;
int result = Square (val + 1);// replaces inline fun in this square fun
cout << result << endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: