// Code derived from Stroustrup's PPP2 book// § 4.4.2.3 for-statements// -and beginning on p 113#include<iostream>usingstd::cout;// return the square of xintsquare(intx){returnx*x;}// calculate and print a table of squares of even numbers in the [0:100) rangeintmain(){for(inti=0;i<100;i+=2)cout<<i<<'\t'<<square(i)<<'\n';}