大家帮我看看,这个c语言出了什么问题,找了那么就看不出来
/*program to calculate the product of two numbers.*/#include<stdio.h>
int vall,va12,va13;
int product(int x, int y);
int main(void)
{
/*get the first number*/
printf("enter a number between 1 and 100:");
scanf("%d",&va11);
/*get the second number*/
printf("enter another number between 1 and 100:");
scanf("%d",&va12);
/*calculate and display the product*/
va13=product(va11,va12);
printf("%d times %d=%d\n",va11,va12,va13);
return 0;
}
/*function returns the product of the two values providde*/
int product(int x,int y)
{
return(x*y);
编译错误为E:\multiply.c(12) : error C2065: 'va11' : undeclared identifier
执行 cl.exe 时出错.
因为小弟初学,什么都不明白,希望给的意见