import java.util.Scanner; public class Demo { public static void main(String[] args) { int num; Scanner in = new Scanner(System.in); System.out.print("Input number: "); num = in .nextInt(); System.out.printf("%d + %d%d + %d%d%d\n", num, num, num, num, num, num); } }