summaryrefslogtreecommitdiff
path: root/math.cpp
blob: 5aeebfdda1efc7071bacf15317e7f72601bc84fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>
#include "math.h"

int getNumberFromUser()
{
   std::cout << "Enter an integer: " ;
   int x ;
   std::cin >> x ;
   return x ;
}

int doubleNumber(int x)
{
   //int z { 3 } ;
   //z = z * 2 ;
   return x * 2 ;
}
bgstack15