#include <stdio.h>
int main()
{
int a=0,b=0,c=0,d=0,e=0,score;
while(1){
scanf("%d %d %d %d %d",&a,&b,&c,&d,&e);
if(a==0 && b==0 && c==0 && d==0 && e==0)
break;
score=a*b*c*d*d*e*e;
printf("%d\n",score);
}
return 0;
}
int main()
{
int a=0,b=0,c=0,d=0,e=0,score;
while(1){
scanf("%d %d %d %d %d",&a,&b,&c,&d,&e);
if(a==0 && b==0 && c==0 && d==0 && e==0)
break;
score=a*b*c*d*d*e*e;
printf("%d\n",score);
}
return 0;
}
No comments:
Post a Comment