Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. if (argCounter == 2 || argCounter == 3)
  2. {
  3. printf("Zu wenige Parameter");
  4. }
  5.  
  6. else
  7. {
  8. if (argCounter == 5)
  9. {
  10. printf("Zu viele Parameter");
  11. }
  12.  
  13. else
  14. {
  15. if (argValue[1] + (int)argValue[2] < argValue[3])
  16. {
  17. printf("Es ist kein Dreieck.");
  18. }
  19.  
  20. else
  21. {
  22. if (argValue[1] + (int)argValue[2] > argValue[3])
  23. {
  24. printf("Es ist ein Dreieck");
  25. }
  26.  
  27. else
  28. {
  29. if (argValue[1] == argValue[2] && argValue[1] == argValue[3])
  30. {
  31. printf("Es ist gleichseitig.");
  32. }
  33.  
  34. else
  35. {
  36. if (argValue[1] == argValue[2] && argValue[1] != argValue[3])
  37. {
  38. printf("Es ist gleichschenklig");
  39. }
  40. }
  41. }
  42. }
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement