fork download
  1. #import <objc/objc.h>
  2. #import <objc/Object.h>
  3. #import <Foundation/Foundation.h>
  4.  
  5. @implementation TestObj
  6. int main()
  7. {
  8. // your code goes here
  9. return 0;
  10. }
  11. @end
Success #stdin #stdout 0s 5276KB
stdin
#include <stdio.h>

int main() {
    double x, y, z;
    printf("请输入第一条边的长度:");
    scanf("%lf", &x);
    printf("请输入第二条边的长度:");
    scanf("%lf", &y);
    printf("请输入第三条边的长度:");
    scanf("%lf", &z);

    if ((x + y > z) && (x + z > y) && (y + z > x)) {
        printf("可以构成三角形。\n");
    } else {
        printf("不能构成三角形。\n");
    }

    return 0;
}
stdout
Standard output is empty