三角形存在性判断

#include <stdio.h>

int main() {
    int a, b, c;
    scanf("%d%d%d", &a, &b, &c);
    if (a + b > c && b + c > a && a + c > b) {
        printf("yes");
    } else {
        printf("no");
    }
    return 0;
}

 

posted @ 2022-09-10 08:50  yuop  阅读(29)  评论(0编辑  收藏  举报