输入2个整数,计算它们的平方根之和,并输出结果。(要求结果保留2位小数)
#include <stdio.h> #include <math.h> int main() { int a,b; double c; scanf("%d%d",&a,&b); c= sqrt(a*1.0)+sqrt(b*1.0); printf("%.2lf",c); return 0; }