Java: Soma de dois números inteiros

From AdonaiMedrado.Pro.Br
Revision as of 01:00, 14 August 2010 by Adonaimedrado (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
import java.util.Scanner;
 
public class Somador
{
    public static void main(String[] args)
    {
        Scanner s = new Scanner(System.in);        
        System.out.println(s.nextInt()+s.nextInt());
    }
}