Skip to content
Snippets Groups Projects
Commit 5d7cbd9d authored by vonopr's avatar vonopr
Browse files

Add source files

parent 494a5929
Branches
Tags
No related merge requests found
#include "exple-add.h"
#include "exple-mul.h"
namespace exple
{
int add_and_mul( int a, int b, int c);
}
int exple::add_and_mul( int a, int b, int c)
{
return exple::mul(exple::add(a, b), c);
}
#include "exple-expr.hpp"
#include <stdio.h>
int main()
{
int a = 2;
int b = 3;
int c = 4;
printf("Multiplication of sum of %i and %i by %i is... %i", a, b, c, exple::add_and_mul(2, 3, 4));
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment