-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmax.c
More file actions
30 lines (24 loc) · 644 Bytes
/
Copy pathmax.c
File metadata and controls
30 lines (24 loc) · 644 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include<stdio.h>
int main()
{
int num1,num2,num3;
printf("Enter first number\n",num1);
scanf("%d",&num1);
printf("Enter your second number\n",num2);
scanf("%d",&num2);
printf("Enter your third number\n",num3);
scanf("%d",&num3);
if (num1>num2 && num1>num3)
{
printf("Your maximum entered number is having value= %d",num1);
}
if (num2>num3 && num2>num1)
{
printf("Your maximum entered number ishaving value= %d",num2);
}
if (num3>num1 && num3>num2)
{
printf("Your maximum entered number is having value =%d",num3);
}
return 0;
}