update
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user