//Basic Addition App.
import java.util.Scanner;
public class inputUserTest {
static Scanner sc = new Scanner (System.in);
public static void main (String[] args) {
System.out.println("Enter a digit");
int x = sc.nextInt();
System.out.println("You Have Entered " + x + ".");
System.out.println("Now select a digit to add to the first digit");
int y = sc.nextInt();
System.out.println("The answer is: " + (x + y));
System.out.println("Thanks for Testing");
}
}
8.15.2009
Subscribe to:
Post Comments (Atom)
.png)
O RLY?
ReplyDelete