From 5ea64f4a3b995144e033fb8e79e878b448eb06b8 Mon Sep 17 00:00:00 2001 From: Mithas Aggarwal Date: Thu, 27 Oct 2022 17:20:10 +0530 Subject: [PATCH 1/2] greatest of al --- greatest of all.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 greatest of all.c diff --git a/greatest of all.c b/greatest of all.c new file mode 100644 index 0000000..f94c5a5 --- /dev/null +++ b/greatest of all.c @@ -0,0 +1,25 @@ +#include +#include + +int main() +{ + int a,b,c; //a=number1,b=number2,c=number3 + scanf("%d%d%d",&a,&b,&c); + + if(a>b && a>c) + { + printf(a is the greatest); + } + + else if(b>a && b>c) + { + printf(b is the greatest); + } + + else + { + printf(c is the greatest); + } + + return 0; +} \ No newline at end of file From ded1c1e6b0998f13455b79bcb72cc0ee42c46f4e Mon Sep 17 00:00:00 2001 From: Mithas Aggarwal Date: Thu, 27 Oct 2022 17:32:45 +0530 Subject: [PATCH 2/2] greatest of all --- greatest of all.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/greatest of all.c b/greatest of all.c index f94c5a5..ade58d7 100644 --- a/greatest of all.c +++ b/greatest of all.c @@ -8,17 +8,17 @@ int main() if(a>b && a>c) { - printf(a is the greatest); + printf("a is the greatest"); } else if(b>a && b>c) { - printf(b is the greatest); + printf("b is the greatest"); } else { - printf(c is the greatest); + printf("c is the greatest"); } return 0;