Skip to content

Instantly share code, notes, and snippets.

@michaelsarduino
Created July 15, 2015 14:53
Show Gist options
  • Save michaelsarduino/fa26e4f8ccb565596642 to your computer and use it in GitHub Desktop.
Save michaelsarduino/fa26e4f8ccb565596642 to your computer and use it in GitHub Desktop.
Das ist eine Beispiel Bibliothek, die den Durchschnitt aus zwei Zahlen errechnet.
/*
* 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