Java: Divisão de dois números inteiros

From AdonaiMedrado.Pro.Br
Revision as of 01:05, 14 August 2010 by Adonaimedrado (Talk | contribs) (Created page with '<code lang=java> import java.util.Scanner; public class Divisor { public static void main(String[] args) { Scanner s = new Scanner(System.in); System.out…')

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