Java Programming Tutorial – 8 – Math Operators

By | 2015년 3월 31일

package hello;
import java.util.Scanner; 

public class apples {
    public static void main(String[] args) {
		Scanner bucky = new Scanner(System.in);
		
		int girls, boys, people;
		girls = 11;
		boys = 3;
		people = girls % boys;
		System.out.println(people);
	}
}