Skip to content

Instantly share code, notes, and snippets.

@gabrielcesar
Created October 26, 2016 03:02
Show Gist options
  • Save gabrielcesar/aacad4f0ca3767b44e686f2d81183396 to your computer and use it in GitHub Desktop.
Save gabrielcesar/aacad4f0ca3767b44e686f2d81183396 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import math
x = int ( input ( 'Número de múltiplos: ' ))
y = int ( input ( 'Valor a ser multiplicado: ' ))
a = x * y
c = 0
while ( c < a ): # numero de multiplos
c += y # valor a ser multiplicado
print ( c )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment