From 51fc46761efe391c81a343af4901c1716ee811d6 Mon Sep 17 00:00:00 2001 From: Swathikaaa <73743131+Swathikaaa@users.noreply.github.com> Date: Sat, 31 Oct 2020 18:13:34 +0530 Subject: [PATCH] Create Largest of 2 no.s --- Largest of 2 no.s | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Largest of 2 no.s diff --git a/Largest of 2 no.s b/Largest of 2 no.s new file mode 100644 index 0000000..4ba7a6a --- /dev/null +++ b/Largest of 2 no.s @@ -0,0 +1,18 @@ +#include +int main() +{ + int num1, num2; + printf("Enter 2 integers"); + scanf("%d%d" , &num1 ,&num2); + if (num1 > num2) + { + printf ("largest no. is %d", num1); + } + else + { + printf("largest no. is %d", num2); + } + + return 0; + + }