https://onlinegdb.com/S1wW0w2Yrskopírovať to už snaď vieš. Ak chceš desatiné čísla, tak prepíš int na float.