import java.util.Scanner;
class bananas
{
public static void main(String args[])
{
Scanner eggs = new Scanner(System.in);
int x, y, ans;
System.out.print("Enter 1st number: ");
x = eggs.nextInt();
System.out.print("Enter 2nd number: ");
y = eggs.nextInt();
System.out.print("Answer: ");
ans = x + y;
System.out.println(ans);
}
}
Quick Links to Application questions (with solutions)!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment