main函数最好定义为int型,最后return 0;
这个程序用不到那么多的变量,得到a和b的值之后,加一个判断,直接printf("%f\n",sqrt(a*b));就行了
最好按的getch()函数用system("pause")代替吧,前面声明一下#include <stdlib.h>
这个程序用不到那么多的变量,得到a和b的值之后,加一个判断,直接printf("%f\n",sqrt(a*b));就行了
最好按的getch()函数用system("pause")代替吧,前面声明一下#include <stdlib.h>

坚决不跟用TC的人打交道!