Advertisement
Josif_tepe

Untitled

Jan 20th, 2024
654
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.    
  6.     int a, b, c;
  7.     cin >> a;
  8.     cin >> b;
  9.     cin >> c;
  10.    
  11.     if(a + b > c and a + c > b and b + c > a) {
  12.         cout << "DA" << endl;
  13.     }
  14.     else {
  15.         cout << "NE" << endl;
  16.     }
  17.    
  18.     return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement