Created
July 15, 2015 14:53
-
-
Save michaelsarduino/fa26e4f8ccb565596642 to your computer and use it in GitHub Desktop.
Das ist eine Beispiel Bibliothek, die den Durchschnitt aus zwei Zahlen errechnet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Durchschnitt_erechnen.c | |
* | |
* Created: 15.07.2015 16:24:54 | |
* Author: Michael | |
*/ | |
#include <avr/io.h> | |
int function(void) | |
{ | |
return 0; | |
} | |
float durchschnitt(int wert1, int wert2) { | |
float summe = wert1 + wert2; | |
float mittelwert = summe / 2; | |
return mittelwert; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment