/* package whatever; // don't place package name! */
import java.util.* ;
import java.lang.* ;
import java.io.* ;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
// your code goes here
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCX0KfQ==
stdin
CmltcG9ydCBqYXZhLnV0aWwuU2Nhbm5lcjsKCnB1YmxpYyBjbGFzcyBOYW1lQW5kU3VtIHsKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBTdHJpbmcgbmFtZSA9ICZxdW90O3JhZ2hhZCZxdW90OzsKICAgICAgICBTY2FubmVyIHNjYW5uZXIgPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnQoJnF1b3Q7RW50ZXIgdGhlIGZpcnN0IG51bWJlcjogJnF1b3Q7KTsKICAgICAgICBpbnQgbnVtMSA9IHNjYW5uZXIubmV4dEludCgpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnQoJnF1b3Q7RW50ZXIgdGhlIHNlY29uZCBudW1iZXI6ICZxdW90Oyk7CiAgICAgICAgaW50IG51bTIgPSBzY2FubmVyLm5leHRJbnQoKTsKICAgICAgICBpbnQgc3VtID0gbnVtMSArIG51bTI7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCZxdW90O05hbWU6ICZxdW90OyArIG5hbWUpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigmcXVvdDtTdW06ICZxdW90OyArIHN1bSk7CiAgICAgICAgc2Nhbm5lci5jbG9zZSgpOwogICAgfQp9Cg==
import java.util.Scanner;
public class NameAndSum {
public static void main(String[] args) {
String name = "raghad";
Scanner scanner = new Scanner(System.in);
System.out.print("Enter the first number: ");
int num1 = scanner.nextInt();
System.out.print("Enter the second number: ");
int num2 = scanner.nextInt();
int sum = num1 + num2;
System.out.println("Name: " + name);
System.out.println("Sum: " + sum);
scanner.close();
}
}