+ 2
int n,s;
cin>>n;
if(n>100&&n<1000){
s=(n%100)/10;
cout<<s*s;}
else
cout<<n*n;
+ 2
if n is not a three digit number
0
Write a c++ program which requests the user to enter a number.The number and the squares of the number are then printed on the same line.