For your homework today, write a program that inputs 3 integers. Then, output the 3 integers in the same order that they were input, but output all 3 of them on the same line. (Hint: you might want to use System.out.print.)
top of page
bottom of page
import java.util.Scanner; class Main { public static void main(String[] args) { System.out.println("please put in three numbers seperated by a space"); Scanner sc = new Scanner(System.in); int one = sc.nextInt(); int two = sc.nextInt(); int three = sc.nextInt(); System.out.printf("%d%d%d",three,two,one); } }