Add FramaC TDM

This commit is contained in:
Yorick Barbanneau 2023-04-30 21:36:12 +02:00
parent 713e8d12c4
commit 56e86b4b20
9 changed files with 606 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#include "abs.h"
int abs(int n)
{
int res = n;
if (n < 0)
res = -n;
return res;
}
int abs2(int n)
{
int aux = n % 2 + (n + 1) % 2;
return n * aux;
}