Algorithm&DataStructures/StepByStep [Algorithm] 백준알고리즘_REST(%) 리딩리드 2016. 8. 23. 14:41 REST 1) Enter three values 2) Show me result of rest(%) package output; import java.util.Scanner; public class Rest { public static void main(String[]args){ Scanner br = new Scanner(System.in); int a = br.nextInt(); int b = br.nextInt(); int c = br.nextInt(); System.out.println((a+b)%c); System.out.println((a%c + b%c)%c); System.out.println((a*b)%c); System.out.println((a%c * b%c)%c); } } https://github.com/KyleJeong/Algorithm