PackageName
 
Docs
Loading...
Searching...
No Matches
template.h
Go to the documentation of this file.
1#ifndef PACKAGENAME_TEMPLATE_H
2#define PACKAGENAME_TEMPLATE_H
3
11int add(int pA, int pB);
12
20int subtract(int pA, int pB);
21
22int multiply(int pA, int pB)
23{
24 int result = 0;
25 int run = 0;
26 for (int i = 0; i < pB; i++) { result = add(result, pA); }
27 return result;
28}
29
30#endif// PACKAGENAME_TEMPLATE_H
int add(int pA, int pB)
Add two integers.
Definition template.c:3
int subtract(int pA, int pB)
Subtract two integers.
Definition template.c:5
int multiply(int pA, int pB)
Definition template.h:22