// Code derived from Stroustrup's PPP2 book// § 4.5 Functions// -and beginning on p 113#include<iostream>usingstd::cout;// return the square of xintsquare(intx){returnx*x;}intmain(){cout<<square(2)<<'\n';// print 4cout<<square(10)<<'\n';// print 100}