style update, interestingly getting 'Floating point exception (core dumped)' after integer input when compiled with 'gcc' but works fine when compiled with 'clang' (even before style changes), perhaps missing some flag for 'gcc'