Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (argCounter == 2 || argCounter == 3)
- {
- printf("Zu wenige Parameter");
- }
- else
- {
- if (argCounter == 5)
- {
- printf("Zu viele Parameter");
- }
- else
- {
- if (argValue[1] + (int)argValue[2] < argValue[3])
- {
- printf("Es ist kein Dreieck.");
- }
- else
- {
- if (argValue[1] + (int)argValue[2] > argValue[3])
- {
- printf("Es ist ein Dreieck");
- }
- else
- {
- if (argValue[1] == argValue[2] && argValue[1] == argValue[3])
- {
- printf("Es ist gleichseitig.");
- }
- else
- {
- if (argValue[1] == argValue[2] && argValue[1] != argValue[3])
- {
- printf("Es ist gleichschenklig");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement