#include<stdio.h>
void abs(int b);
int main(void)
{
int a;
printf("정수를 입력하세여 ㅎ\n");
scanf("%d",&a);
void abs(a);
return 0;
}
int abs(int b)
{
if(b<0)
b*=-1;
else if(0<b)
printf("입력한값의 절대값은 %d입니당 ㅎ\n",b);
else
b=0;
printf("입력한값의 절대값은 %d입니당 ㅎ\n",b);
}
정수값하나 입력받아서 절대값으로 출력시키는건데
3: warning: conflicting types for built-in function `abs'
In function `main':
10: parse error before `void'
At top level:
17: conflicting types for `abs'
3: previous declaration of `abs'
에러가 수도없이 떠버렷
올리신 에러에 답이 있네요.
까막눈이라그런데 알려주시면안될까여 ㅎ