根号在c语言中有函数,sqrt(a+b);就是对a+b开根号了,你可以参考一下我写的代码,如果有帮助,请采纳一下,谢谢#include<stdio.h>#include<math.h>int main(){int a,b;scanf("%d%d",&a,&b);double s;s=(a-b)/sqrt(a+b);printf("%lf",s);return 0;}