14 lines
224 B
C++
14 lines
224 B
C++
|
#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";
|
||
|
}
|