inblog logo
|
stupefyee
    알고리즘문제풀기

    24.11.12. JAVA 문제풀이

    Stupefyee's avatar
    Stupefyee
    Nov 12, 2024
    24.11.12. JAVA 문제풀이
    Contents
    1. 두 수의 곱2. 나머지 구하기3. 몫 구하기4. 두 수의 차5. 두 수의 합

    1. 두 수의 곱

    notion image
    💡
    class Solution { public int solution(int num1, int num2) { int answer = num1 * num2; return answer; } }
     

    2. 나머지 구하기

    notion image
    💡
    class Solution { public int solution(int num1, int num2) { int answer = num1 % num2; return answer; } }
     

    3. 몫 구하기

    notion image
    💡
    class Solution { public int solution(int num1, int num2) { int answer = num1 / num2; return answer; } }
     

    4. 두 수의 차

    notion image
    💡
    class Solution { public int solution(int num1, int num2) { int answer = num1 - num2; return answer; } }
     

    5. 두 수의 합

    notion image
    💡
    class Solution { public int solution(int num1, int num2) { int answer = num1 + num2; return answer; } }
    Share article
    Contents
    1. 두 수의 곱2. 나머지 구하기3. 몫 구하기4. 두 수의 차5. 두 수의 합

    stupefyee

    RSS·Powered by Inblog