Java Programming Tutorial - Math Operators



import java.util.Scanner;
public class apples{
public static void main(String args[]) {
Scanner thileban = new Scanner (System.in);
int girls, boys, people;
girls = 6;
boys = 3;
people = girls / boys; 
System.out.println(people);
}
}

Comments