update stage
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
int a, b, c;
|
||||
|
||||
printf("Pleas enter 3 values: \n");
|
||||
|
||||
scanf("%d %d %d", &a, &b, &c);
|
||||
|
||||
printf("a = %d b = %d c = %d\n", a, b, c);
|
||||
|
||||
if (a < b && a < c)
|
||||
{
|
||||
printf("a = %d -> Minimum\n", a);
|
||||
}
|
||||
|
||||
if (b < a && b < c)
|
||||
{
|
||||
printf("b = %d -> Minimum\n", b);
|
||||
}
|
||||
|
||||
if (c < a && c < b)
|
||||
{
|
||||
printf("c = %d -> Minimum\n", c);
|
||||
}
|
||||
|
||||
if (a > b && a > c)
|
||||
{
|
||||
printf("a = %d -> Maximum\n", a);
|
||||
}
|
||||
|
||||
if (b > a && b > c)
|
||||
{
|
||||
printf("b = %d -> Maximum\n", b);
|
||||
}
|
||||
|
||||
if (c > a && c > b)
|
||||
{
|
||||
printf("c = %d -> Maxmum\n", c);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user