请教在编译的时候出来什么问题?
#include<stdio.h> /*求最大公约数和最小公倍数*/void mian()
{
int m,n,m1,n1,a;
printf("输入两个正整数:");
scanf("%d%d",&m,&n); /*把两个数存在内存中*/
m1=m;n1=n; /*这样做目的为了保存m,n的值*/
a=m1%n1;
while(a!=0)
{
m1=n1;
n1=a;
a=m1%n1;
}
printf("最大公约数=%d\n",n1);
printf("最小公倍数=%d\n",m*n/n1);
}
--------------------Configuration: for循环01 - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/for循环01.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
for循环01.exe - 2 error(s), 0 warning(s)