Anzeige

Insert a code segment in the box below to call the previous function i.docx

rtodd972
28. Jan 2023
Insert a code segment in the box below to call the previous function i.docx
Insert a code segment in the box below to call the previous function i.docx
Nächste SlideShare
Introducing the central bank system of south Korea plz give lots of de.docxIntroducing the central bank system of south Korea plz give lots of de.docx
Wird geladen in ... 3
1 von 2
Anzeige

Más contenido relacionado

Más de rtodd972(20)

Anzeige

Insert a code segment in the box below to call the previous function i.docx

  1. Insert a code segment in the box below to call the previous function in order to compute and display 9^2 - Squareroot 9 = 78 9 squared - squareroot of 9 = 78 Feel free to declare any local variables that you think you may need: Solution Answer: public class Simplifysquareprogram { public static void main(String[] args) { simplification(); } public static void simplification() { int number = 9; double squareroot_number = Math.sqrt(number); int square_number=number * number; double output=square_number-squareroot_number; System.out.println("9 squared - square root of 9 ="+output); } }
Anzeige