import java.util.Scanner;
public class Exercise {
public static void main(String[] args) {
int n;
char s1, s2, s3;
Scanner in = new Scanner(System.in);
System.out.print("Input number: ");
n = in .nextInt();
System.out.printf("%d + %d%d + %d%d%d\n", n, n, n, n, n, n);
}
}
output:
need an explanation for this answer? contact us directly to get an explanation for this answer