#include <stdio.h>

int add(int x){
    int result = 5*x+1;
    return result;
}

int add2(int a, int b){
    return a+b;
}

int main() {
    printf("%d\n", add(5));
    printf("%d\n", add2(1,2));
    
    //문제 1 두 수 비교하기
    // int a,b;
    // scanf("%d %d", &a, &b);
    // if(a>b){
    //     printf(">");
    // }else if(a<b){
    //     printf("<");
    // }else if(a==b){
    //     printf("==");
    // }

    //문제 2 윤년 구하기
    // int n;
    // scanf("%d",&n);
    // if(n % 4 == 0 && n % 400 == 0 || n % 100 != 0){
    //     printf("1");
    // }else{
    //     printf("0");
    // }
    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: