#include <stdio.h>
void multiple(int a,int b);
int main(void)
{
int a,b;
printf("press two number : \n");
scanf("%d %d",&a,&b);
if(a>b)
{
void multiple(a,b);
}
else
{
void multiple(b,a);
}
return 0;
}
void multiple(int a, int b)
{
int c;
for(;a>=b;b++)
{
for(c=1;c<10;c++)
{
printf("%d * %d = %d\n",b,c,b*c);
}
}
}
열혈 C에나오는 도전 프로그래밍 문재인뎀
gcc 로 컴파일 할때
warning : parameter names (without types) in functions declaration
이라고 뜨는데 왜그런거지 (a,b) 이렇게 인자 삼입 가능한거아냐?
ㅠㅠ 알려좀 줘 형아들 ㅠㅜㅠㅜ
main에서 호출할때는 void 빼야하는거 아니냐?
함수를 어떻게 선언해야하는지 잘 생각해보고 다시 한번 봐라
선언->호출