n = 7;m = 2; fi = (1 + (5 ** 0.5)) / 2print round((fi**n)/(5**0.5)) % m
Standard input is empty
1.0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!