我已经成功地编译我的代码,但它说的:
Note: You can also run your application by typing 'run' followed by any command line arguments. Starting application without args... Checking Libraries... Copying files... Processing Files... Compiling... Failed to zip binaries! Application Exited.
我希望我的代码,让用户在输入之间的三个数字,用空格,并将它们相乘,所以这里是我的代码:
#include <stdio.h>
#include <stdlib.h>
int mult( int x, int y, int z) {
return x * y * z;
int main()
{
int x;
int y;
int z;
printf("Input two integers to be multiplied: ");
scanf("%d", &x);
scanf("%d", &y);
scanf("%d", &z);
printf("The product of the three numbers is %d\n", mult( x, y, z) );
getchar();
}
int mult (int x, int y, int z)
{
return x * y * z;
}
}
我使用compilr.com作为我的开发平台。