#include <stdio.h>

//2. 함수 선언 (main 함수보다 위에)
int add(int a, int b);

int main() {
    //3. 함수 호출
    add(2, 3);
}

//1. 함수 정의 (main 함수 밖에 정의한다.)
int add(int a, int b){
    return a+b;
}

Embed on website

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