From 0a3963737b3599b722a64fb7c5e2f5327aaca435 Mon Sep 17 00:00:00 2001 From: Aniket Pai Date: Wed, 2 Feb 2022 19:52:39 +0530 Subject: [PATCH 1/2] Text Files added --- Text.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Text.txt diff --git a/Text.txt b/Text.txt new file mode 100644 index 0000000..48d4c52 --- /dev/null +++ b/Text.txt @@ -0,0 +1,2 @@ +First Line +Second Line \ No newline at end of file From 6cfac24bb0ad3840321f7f738edafb6a8aad5a48 Mon Sep 17 00:00:00 2001 From: Aniket Pai Date: Wed, 2 Feb 2022 19:57:16 +0530 Subject: [PATCH 2/2] Text Files added --- Text.txt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Text.txt b/Text.txt index 48d4c52..0d3605b 100644 --- a/Text.txt +++ b/Text.txt @@ -1,2 +1,16 @@ -First Line -Second Line \ No newline at end of file +public class Largest { + + public static void main(String[] args) { + + double n1 = -4.5, n2 = 3.9, n3 = 2.5; + + if( n1 >= n2 && n1 >= n3) + System.out.println(n1 + " is the largest number."); + + else if (n2 >= n1 && n2 >= n3) + System.out.println(n2 + " is the largest number."); + + else + System.out.println(n3 + " is the largest number."); + } +} \ No newline at end of file