시험 대비 복습
C
#include <stdio.h>
int add(int a,int b) {
return a+b;
}
int func1(int a){ //a = 10
return 10 + a * 2;
}
void minus(int a,int b){
printf("%d\n",a-b);
}
void func2(int a){
printf("%d\n",a * a);
}
int main() {
printf("%d\n",add(10,20));
printf("%d\n",func1(10));
minus(10,5);
func2(5);
}
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.