fork download
  1.  
  2. public class Main {
  3. public static void main(String[] args) {
  4. // TODO code application logic here
  5. int first = 1;
  6. int second = 22;
  7.  
  8. double secondD = second;
  9. while (secondD > 1) {
  10. secondD /= 10;
  11. }
  12.  
  13. double firstD = first;
  14. double result = firstD + secondD;
  15. System.out.print(result);
  16. }
  17. }
  18.  
Success #stdin #stdout 0.06s 380160KB
stdin
Standard input is empty
stdout
1.22