URI 1004 - Simple Product solve
URI 1004 - Simple Product solve
#include<stdio.h>
int main()
{
int A,B,PROD;
scanf("%d",&A);
scanf("%d",&B);
PROD=A*B;
if(PROD>=0)
{
printf("PROD = %d\n",PROD);
}
else if(PROD<0)
{
printf("PROD = %d\n",PROD);
}
return 0;
}

No comments