This commit is contained in:
ZennDev1337 2024-01-22 10:26:02 +01:00
parent 9bf81f1adc
commit b21c717fdd
4 changed files with 24 additions and 12 deletions

14
io.cpp Normal file
View file

@ -0,0 +1,14 @@
#include "io.h"
#include <iostream>
int readNumber()
{
std::cout << "Enter a number to add: ";
int x{};
std::cin >> x;
return x;
}
void writeAnswer(int x)
{
std::cout << "The answer is: " << x << "\n";
}