P1-P5: init

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-04-10 05:54:43 +05:30
commit 9006831163
7 changed files with 223 additions and 0 deletions

14
P3.java Normal file
View File

@@ -0,0 +1,14 @@
class P3 {
public static void main(String[] _args) {
int a = 5, b = -5, c = 55, mx;
if (a > b && a > c)
mx = a;
else if ( b > a && b > c)
mx = b;
else
mx = c;
System.out.println("max(" + a + ", " + b + ", " + c + ") = " + mx);
}
}