public static void main (String[]args) { float num = 567e1f; double secondnum = 789.8654E10d; System.out.println("Your answer is" + num + "and" + secondnum); } }
public class Foo { public static void main (String[] args) { float num = 567e1f; double secondnum = 789.8654E10d; System.out.println("Your answer is " + num + " and " + secondnum); } }
Your answer is 5670.0 and 7.898654E12
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)