aboutsummaryrefslogtreecommitdiff
path: root/Project1/program.cpp
blob: 477e05afa00c44bde7977e13b322bcb2e4a243ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <iostream>

#include "helpers.h"


int main()
{
	std::cout << math_func() << std::endl;

	std::cout << math_func(2) << std::endl;

	std::cout << math_func(2,4) << std::endl;

	std::cout << math_func(5, 7, 8) << std::endl;

	return 0;
}

int math_func() 
{

	return 1;
}

int math_func(int square)
{

	return square * square;
}

int math_func(int a, int b)
{

	return a + b;
}

int math_func(int A, int B, int C, int x)
{

	return (A * x * x) - (B * x) + C;
}