After programming as a compulsory subject has been introduced in primary education in Serbia, better connections between teaching of informatics, mathematics and physics have become possible. In this paper, several examples are presented, showing possible correlations between these subjects.