代码刚刚写的, 你看下
#include(stdio.h)
main()
{
printf("shu ru shu zi:\n");
int i,j,s;
scanf("%d,%d",&i,&j);
s=i*j;
printf("i*j=%d",s);
}
#include
long product(int num1, int num2)
{
return num1 * num2;
}
int main(void)
{
int num1, num2;
printf("please enter two number get them product:\n");
scanf("%d %d", &num1, &num2);
printf("The result is:%ld\n", product(num1, num2));
return 0;
}
#include
int main()
{
int x,y,a;
scanf("%d",&x);
scanf("%d",&y);
a=x*y;
printf("The average is %d\n",a);
return 0;
}