Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 422 Bytes

File metadata and controls

26 lines (17 loc) · 422 Bytes

codeKata ( C++ )

2024_12_26 ( ex01 )

문제

image

해답

#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>

int solution(int num1, int num2) {
    int answer = 0;
    
    if(-50000 <= num1 <= 50000 && -50000 <= num2 <= 50000){
        answer = num1 - num2;
    }
    
    return answer;
}