int soucet(int scitanec1, int scitanec2); //deklarace funkce - ukazuje hlavičku funkce //int = návratová hodnota //soucet = jméno funkce //v závorce jsou parametry funkce int soucet(int scitanec1, int scitanec2){ return scitanec1 + scitanec2; //implementace výše deklarované funkce //říká co se při zavolání funkce stane }