소스를 그대로 올리신 거라면..
b를 읽어들이는 scanf를 잘못 쓰셨네요..
김경래 님이 쓰신 글 :
:
:
:
:
:
:
: #include
: int a,b,c; int product(int x,int y);
: main() { printf("Enter a number between 1 and
: 100:"); scanf("%d",&a); printf("Enter another number
: between 1 and 100:"); scanf("%d,&b");
: c = product(a,b); printf("\n%d times %d =
: %d\n",a,b,c);
: return 0; }
: int product(int x, int y) { return (x * y); }
: 두개의 수 입력받아서 곱하는건데여..
: 실행시키면여..
: 숫자두개는 받는데여--;;
: 결과나오는데서 에러가뜨네여--;;
: 머가 잘못되었나여--;??
:
:
:
|