Input
Output
public class AddTwoNumbers { public static void main(String[] args) { int num1 = 5; int num2 = 6; // Simulate input prompts with values System.out.println("Enter the first number: " + num1); System.out.println("Enter the second number: " + num2); // Perform addition int sum = num1 + num2; // Display the result System.out.println("The sum of " + num1 + " and " + num2 + " is: " + sum); } }