Created
February 4, 2018 05:36
-
-
Save TranNgocMinh/c9acf35bf736c5140b7f1cd528518d4c to your computer and use it in GitHub Desktop.
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 ...{ | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner( System.in ); | |
System.out.print( "Nhap so thu nhat: " ); | |
int val1=Integer.parseInt( scanner.nextLine() ); | |
System.out.print( "Nhap so thu hai: " ); | |
int val2=Integer.parseInt( scanner.nextLine() ); | |
int Total = val1+val2; | |
System.out.println("Tong la:" + Total); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment