From d28ee752ef2b8c32cb87e5c34fb0a5452f25d042 Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Sun, 18 Jul 2021 17:00:17 +0300 Subject: [PATCH] lesson 16 --- lesson_16/main.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lesson_16/main.cpp diff --git a/lesson_16/main.cpp b/lesson_16/main.cpp new file mode 100644 index 0000000..40bc867 --- /dev/null +++ b/lesson_16/main.cpp @@ -0,0 +1,13 @@ +#include + +int doubleNumber(int a) +{ + return a * 2; +} + +int main() +{ + int a; + std::cin >> a; + std::cout << doubleNumber(a) << std::endl; +}