#include <stdio.h> // νμ€ μ
μΆλ ₯ ν¨μ
int function4(int x, int y){ // λ§€κ°λ³μ x, yκ° μκ³ , λ°νκ°μ intν
printf("λ κ°μ λ§€κ°λ³μ: %d, %d\n", x, y);
printf("λ°νκ° μμ: %d\n", x+y);
return x + y; // xμ yμ ν©μ λ°ν
}
int main(){ // νλ‘κ·Έλ¨ μμ, main ν¨μ μ μ
int a = 10, b = 6; // μ μν λ³μ a, b μ μΈ λ° μ΄κΈ°ν
int result4 = function4(a, b);
// ν¨μ νΈμΆ μ, λ§€κ° λ³μμΈ a, bμ κ°μ΄ function4()μ x, yμ μ λ¬λκ³
// λ°ν κ°(λ μμ ν©)μ΄ μ μν λ³μ result4μ μ μ₯
printf("function4μ λ°νκ°: %d\n", result4); // λ°νκ° μΆλ ₯
return 0; // νλ‘κ·Έλ¨ μ’
λ£
}