Last active
August 15, 2020 23:11
-
-
Save Ziggoto/73126329c5c225c44c4f634b82e88e30 to your computer and use it in GitHub Desktop.
Factorial command in VIM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:let fat = 10 | let aux = 1 | for i in range(1, fat) | let prevAux = aux | let aux = aux * i | put =printf('%d x %d = %d', prevAux, i, aux) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment