diff --git a/exercises/sum.cpp b/exercises/sum.cpp index 0dcca93..4353fc5 100644 --- a/exercises/sum.cpp +++ b/exercises/sum.cpp @@ -6,3 +6,20 @@ Insert the second number: 2 Sum: 3 */ + +#include + +int main() +{ + double first = 0; + double second = 0; + + std::cout << "Insert the first number: "; + std::cin >> first; + std::cout << "Insert the second number: "; + std::cin >> second; + + std::cout << "Sum: " << first + second << std::endl; + + return 0; +}