fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Q2
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. int a = 5;
  10. int b = 10;
  11. double c = 2.5;
  12. double d = 5.002;
  13. System.out.println("(a+b)/c+d= " + (a+b)/c +" "+ d);
  14. }
  15. }
Success #stdin #stdout 0.19s 57968KB
stdin
Standard input is empty
stdout
(a+b)/c+d= 6.0 5.002