You are on page 1of 1

#include<stdio.

h>
int main()
{
int num1, num2, num3, num4;
printf("Enter four numbers:");
scanf("%d %d %d %d,&num1 &num2 &num3 &num4");
if (num1<num2<num3<num4)
{
printf("%d is smallest",num1);
}
else if (num2<num3<num4)
{
printf("%d is the smallest",num2);
}
else if (num3<num4)
{
printf(%d is the smallest, num3);
}
else
{
printf("%d is the smallest, num4");
}
return 0;
}

You might also like