#include <stdio.h>
int main() {
int x,y,z;
printf("PLEASE ENTER THE NUMBERS\n");
scanf("%d%d%d",&x,&y,&z);
if ( (x+y<x+z) && (x+y<y+z) )
{ printf("THE SUM ie %d OF %d AND %d IS SMALLEST\n",x+y,x,y); }
if ( (y+z<x+y) && (y+z<x+z) )
{printf("THE SUM ie %d OF %d AND %d IS SMALLEST\n",y+z,y,z); }
if( (z+x<x+y ) && (z+x<y+z) )
{ printf("THE SUM IS %d OF %d AND %d IS SMALLEST\n",z+x,z,x); }
return 0;
}
No comments:
Post a Comment