MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / add

Method add

Programs/ComplexNosOps.java:24–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 }
23 // Function to add two complex numbers
24 public void add() {
25 double addr = real1 + real2;
26 double addi = imag1 + imag2;
27 System.out.println("Addition is: " + addr + " + " + addi + "i");
28 }
29 // Function to subtract two complex numbers
30 public void sub() {
31 double subr = real1 - real2;

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected