几何三角形白盒测试.docVIP

  • 8
  • 0
  • 约2.04万字
  • 约 29页
  • 2019-09-13 发布于江苏
  • 举报
一.三角形问题: 1. import java.util.Scanner; 2. public class test 3.{ 4. public static void main(String[] args) 5. { 6. Scanner input=new Scanner(System.in); 7. System.out.print(Enter 3 integers which are sides of a triangle:); 8. double a=input.nextDouble(); 9. double b=input.nextDouble(); 10. double c=input.nextDouble(); 11 int sign1=0,sign2=0; 12 if(a0b0c0a200b200c200) { 13 if(a+bca+cbb+ca) { 14 if(a==ba==c) //F11 15. System.out.print(是等边三角形); 16. else { 17 if(a==b||b==c||a==c) //14 18 sign1=1; 19 if(a*a+b*b==c*c||a*a==b*

文档评论(0)

1亿VIP精品文档

相关文档