// Code derived from Stroustrup's PPP2 book// § 4.4.2.2 Blocks// -and beginning on p 111#include<iostream>usingstd::cout;// return the square of xintsquare(intx){returnx*x;}intmain(){inti=0;while(i<100){cout<<i<<'\t'<<square(i)<<'\n';++i;// increment i (that is, i becomes i+1)}//---cout<<'\n';inta=1;intb=0;if(a<=b){;// do nothing}else{// swap a and bintt=a;a=b;b=t;}cout<<a<<'\n'// output above variable values to console<<b<<'\n';}