26 lines
409 B
C
26 lines
409 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main()
|
|
{
|
|
int num1, num2;
|
|
|
|
printf("Find the maximum of two values!\n");
|
|
printf("Please enter the two values: \n");
|
|
scanf("%d %d", &num1, &num2);
|
|
|
|
if (num1 > num2)
|
|
{
|
|
printf("num1\n");
|
|
}
|
|
else if (num2 > num1)
|
|
{
|
|
printf("num2\n");
|
|
}
|
|
else
|
|
{
|
|
printf("Both values are equal.\n");
|
|
}
|
|
|
|
return 0;
|
|
} |