Skip to content

Instantly share code, notes, and snippets.

@gabrielcesar
Created October 26, 2016 03:02
Show Gist options
  • Select an option

  • Save gabrielcesar/aacad4f0ca3767b44e686f2d81183396 to your computer and use it in GitHub Desktop.

Select an option

Save gabrielcesar/aacad4f0ca3767b44e686f2d81183396 to your computer and use it in GitHub Desktop.

Revisions

  1. gabrielcesar created this gist Oct 26, 2016.
    14 changes: 14 additions & 0 deletions mul.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    #!/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 )