import java.util.Scanner;
import java.lang.math;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
int ri, repeat;
float a, b, c, area, perimeter, s;
Scanner in=new Scanner(System.in);
repeat=in.nextInt();
for(ri=1; ri<=repeat; ri++){
a=in.nextFloat();
b=in.nextFloat();
c=in.nextFloat();
if((a<b+c)&&(b<a+c)&&(c<a+b)){
s=(a+b+c)/2;
area = Math.sqrt (s*(s-a)*(s-b)*(s-c));
perimeter=a+b+c;
System.out.println("area="+(int)(area*100+0.5)/100.+";perimeter="+(int)(perimeter*100+0.5)/100.);
}
else{
System.out.println("These sides do not correspond to a valid triangle");
}
}
}
}
程序一直报错,可以帮我看看哪里出错了嘛qwq