#include<iostream.h>#include<conio.h>#include<math.h>#include<iomanip.h>
void main(){int a,b,s,i,x,y;cout<<"a=";cin>>a;cout<<"b=";cin>>b;x=a;y=b;s=0;if(a<0)a=-a;if(b<0)b=-b;for(i=1;i<=b;i++)s+=a;if((x<0 && y>0)||(x>0 && y<0))s=-s;
cout<<"s="<<s;
}