Skip to content
Snippets Groups Projects
Commit 80f52ad2 authored by Cédric Maron's avatar Cédric Maron
Browse files

feat : add addition soustraction multiplication division dans main

parent 63f7b1ba
Branches
Tags V1.0
No related merge requests found
......@@ -15,6 +15,18 @@ int main(int argc, char* argv[])
{
std::cout << "addition" << std::endl;
}
else if (argv[1][0] == '-')
{
std::cout << "soustraction" << std::endl;
}
else if (argv[1][0] == '*')
{
std::cout << "multiplication" << std::endl;
}
else if (argv[1][0] == '/')
{
std::cout << "division" << std::endl;
}
}
return 0;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment