Last active
August 29, 2015 14:18
-
-
Save victorabraham/0e38b194d58eb7d1dc04 to your computer and use it in GitHub Desktop.
Java Samples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Add{ | |
public static void main(String[] args){ | |
Scanner scan = new Scanner(System.in); | |
int a = scan.nextInt(); | |
int b = scan.nextInt(); | |
int c = a+b; | |
System.out.println(c); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment