Difference between revisions of "Java: Divisão de dois números inteiros"

From AdonaiMedrado.Pro.Br
Jump to: navigation, search
(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…')
 
(No difference)

Latest revision as of 01:05, 14 August 2010

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());
    }
}