fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. int x;
  6. printf("Enter first Side of the Triangle: ");
  7. scanf("%d",&x);
  8. int y;
  9. printf("Enter second Side of the Triangle: ");
  10. scanf("%d",&y);
  11. int z;
  12. printf("Enter third Side of the Triangle: ");
  13. scanf("%d",&z);
  14.  
  15. if(x+y>=z || y+z>=x || z+x>=y)
  16. {
  17. printf("Valid Triangle");
  18.  
  19. }
  20. else{
  21. printf("Invalid Triangle");
  22. }
  23.  
  24.  
  25.  
  26.  
  27. return 0;
  28. }
  29.  
Success #stdin #stdout 0s 5268KB
stdin
Standard input is empty
stdout
Enter first Side of the Triangle: Enter second Side of the Triangle: Enter third Side of the Triangle: Valid Triangle