Skip to content

Commit eb2b62d

Browse files
authored
Add files via upload
1 parent 70fafa6 commit eb2b62d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*code by Jyotiraditya Singh.*/
2+
/*Linkedin: https://www.linkedin.com/in/jyotir-aditya-028925249*/
3+
#include<stdio.h>
4+
int main()
5+
{
6+
int a=0, b=0, c=0;
7+
printf("Enter three numbers:");
8+
scanf("%d,%d,%d", &a,&b,&c);
9+
if(a>b){
10+
if(a>c){
11+
printf("%d is the greatest.", a);
12+
}
13+
14+
else if(b>a){
15+
if(b>c){
16+
printf("%d is greatest.", b);
17+
}
18+
}
19+
else if(c>a){
20+
if(c>b){
21+
printf("%d is the geatest.", c);
22+
}
23+
}
24+
}
25+
26+
return 0;
27+
}

0 commit comments

Comments
 (0)