Gut, ein wenig deutlicher (irgendwo aufgeschnappt und umgeschrieben).
Die Ausgabe solcher und ähnlicher Codeschnipsel mal eben testen...,
aber eben in der Arduino-Umgebung, ohne Übertragung aufs Board.
//Version g++
// g++ -o hallowelt hallowelt.cpp; ./hallowelt
#include <stdio.h>
#include <cstdlib>
float a = 692;
float b = 697;
float c = 700;
float ta;
float tb;
int main()
{
ta = (a+b+c)/3;
tb = 3/(1/a+1/b+1/c);
printf("%f\n", ta);
printf("%f\n", tb);
printf("%f\n", 70*(ta-tb));
printf("%i\n", 70*(ta-tb));
printf("%i\n", abs(70*(ta-tb)));
}
// Version gcc
// gcc -o hello hello.c; ./hello
#include <stdio.h>
float a = 692;
float b = 697;
float c = 700;
float ta;
float tb;
void main()
{
ta = (a+b+c)/3;
tb = 3/(1/a+1/b+1/c);
printf("%f\n", ta);
printf("%f\n", tb);
printf("%f\n", 70*(ta-tb));
}