[프로그래머스/Java] Lv.0 나머지 구하기 1 2 3 4 5 6 7 class Solution { public int solution(int num1, int num2) { int answer = -1; answer=num1%num2; return answer; } } Colored by Color Scripter cs [JAVA] 프로그래머스 스쿨/Java Lv.0 2022. 11. 16. 15:22
[프로그래머스/Java] Lv.0 배열 두 배 만들기 1 2 3 4 5 6 7 8 9 class Solution { public int[] solution(int[] numbers) { int[] answer = new int[numbers.length]; //리턴값용 정수배열 for(int i=0; i [JAVA] 프로그래머스 스쿨/Java Lv.0 2022. 11. 16. 15:19
[프로그래머스/Java] Lv.0 숫자 비교 1 2 3 4 5 6 7 8 9 10 11 12 13 class Solution { public int solution(int num1, int num2) { int result=0; //리턴값용 정수 while(0 [JAVA] 프로그래머스 스쿨/Java Lv.0 2022. 11. 16. 15:14
[프로그래머스/Java] Lv.0 두 수의 나눗셈 1 2 3 4 5 6 7 8 9 10 11 class Solution { public int solution(int num1, int num2) { int a=0; //리턴값용 정수 if(0 [JAVA] 프로그래머스 스쿨/Java Lv.0 2022. 11. 15. 23:06
[프로그래머스/Java] Lv.0 몫 구하기 1 2 3 4 5 6 7 8 9 class Solution { public int solution(int num1, int num2) { int answer = 0; if(0 [JAVA] 프로그래머스 스쿨/Java Lv.0 2022. 11. 15. 17:31
[프로그래머스/Java] Lv.0 두 수의 곱 1 2 3 4 5 6 7 8 9 class Solution { public int solution(int num1, int num2) { int answer = 0; if(0 [JAVA] 프로그래머스 스쿨/Java Lv.0 2022. 11. 15. 17:29
[프로그래머스/Java] Lv.0 두 수의 차 1 2 3 4 5 6 7 8 9 class Solution { public int solution(int num1, int num2) { int answer=0; if(-50000 [JAVA] 프로그래머스 스쿨/Java Lv.0 2022. 11. 15. 17:24
[프로그래머스/Java] Lv.0 두 수의 합 1 2 3 4 5 6 class Solution { public int solution(int num1, int num2) { int result=num1+num2; return result; } } Colored by Color Scripter cs [JAVA] 프로그래머스 스쿨/Java Lv.0 2022. 11. 15. 17:19