From c13302d9f592ada1b7cf37a7807db87e8b61dbd3 Mon Sep 17 00:00:00 2001 From: Sage Burger Date: Wed, 16 Aug 2023 13:31:08 +0200 Subject: [PATCH] added a new varible z --- bin/App.class | Bin 1449 -> 1488 bytes src/App.java | 11 ++++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/App.class b/bin/App.class index 5cef78c82332bd7f2a7b34e4a0c6cf93462080e7..b466bacd07536147e54e3c0e00a5ba78bdaf80f6 100644 GIT binary patch delta 380 zcmYk2%`XE%7{;HO{j`;)8Y`<-vJTZsB|gfcv`T#yJrLr$n{^)|@eYai#6j5s!oJ&@=D&qWsvn%n$^J*E( z8kWQ-&#{V7q(^sA#~MRw?xWk?G{ zN=q8HL|eM+8iER)B5%aKJmP(P6?-y?Qf|<$%U%;1+jHekP&z?1WmEA?)pNBMB!0nE zO|69-(1b->$ua5;GUqU;77!P0Idj{K1N6a%g$tx`jRC~yboc)nn7|}a7W>F!3Jjyz z!8Ba*7)K2=q$K*EGGm|mh@e-qrkX{iKQN%*5eFTf&+Ey&J zRLBEZ`2^O!gCY)E44jW|=D@s%k74lk^U?>J>^%iq>q5=t^qqUqb-%@0hE?~W$JM$E z%zb_(%cdgkogSC3t}n`$C+^jZ*p8y&a;D;E=qgHrC0Dfv0}79fn9tp<9rM5AX5M_d zz8xNlY~&rL{xg3R`R>amCS}mYUiBtop8`h|IU^yI`_8|GI@6MBw3%TR#RM(pNYPBu uU|z_`7n3XqS-Om}DCCJRVM)lBz99z9vg|=t9Br8mwj>2Y+w53&DgFXXyenD& diff --git a/src/App.java b/src/App.java index b87f854..b3fa085 100644 --- a/src/App.java +++ b/src/App.java @@ -10,17 +10,18 @@ public class App { // Creating a Random object Random random = new Random(); - // Define the range for x and y - int minRange = -1000; - int maxRange = 1000; + // Define the range for x, y and z + int minRange = -10000; + int maxRange = 10000; // Generate random values for x and y within the specified range int x = random.nextInt(maxRange - minRange + 1) + minRange; int y = random.nextInt(maxRange - minRange + 1) + minRange; + int z = random.nextInt(maxRange - minRange + 1) + minRange; - int sum = x + y; + int sum = x + y + z; - System.out.println("The sum of " + x + " and " + y + " is: " + sum); + System.out.println("The sum of " + x + " " + y + " and " + z + " is: " + sum); System.out.println("May the code be with you!"); }