https://school.programmers.co.kr/learn/courses/30/lessons/120802 class Solution { public int solution(int num1, int num2) { return num1 + num2; } }
프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/120829 class Solution { public int solution(int angle) { if (0 < angle && angle < 90) return 1; else if (angle == 90) return 2; else if (90 < angle && angle < 180) return 3; else return 4; } }
https://school.programmers.co.kr/learn/courses/30/lessons/120806 class Solution { public int solution(int num1, int num2) { double answer = (double) num1 / num2 * 1000; return (int)answer; } }
https://school.programmers.co.kr/learn/courses/30/lessons/120807 class Solution { public int solution(int num1, int num2) { if(num1==num2) return 1; else return -1; } }
https://school.programmers.co.kr/learn/courses/30/lessons/120820 class Solution { public int solution(int age) { return 2022-age+1; } }
https://school.programmers.co.kr/learn/courses/30/lessons/120805 class Solution { public int solution(int num1, int num2) { return num1 / num2; } }