Skip to content
Snippets Groups Projects
Commit 4abb708e authored by Ian Korovinsky's avatar Ian Korovinsky
Browse files

Modified triangle.c

parent abe0604f
No related branches found
No related tags found
No related merge requests found
......@@ -79,9 +79,9 @@ float triangleArea(const float s1, const float s2, const float s3)
int main(const int argc, const char *const argv[])
{
if (argc != EXPECTED_ARG_COUNT)
if (argc < EXPECTED_ARG_COUNT)
{
printf("Wrong amount of arguments!\n");
printf("You did not enter at least 6 arguments. Please enter the correct number of arguments, and then try again!\n");
return 1; // Exit with an error code
}
/* Cartesian coordinates */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment