import java.util.Scanner; import java.io.IOException; import java.io.File; public class Sum{ public static void main(String[] args){ try{ Scanner reader = new Scanner(new File("3nums.txt")); int a = reader.nextInt(); int b = reader.nextInt(); int c = reader.nextInt(); System.out.println(a + " + " + b + " + " + c + " = " + (a + b + c)); } catch(IOException e){ } } }