Skip to content
Snippets Groups Projects
Select Git revision
  • e5ba4a1615ce66b27c1d00f388824186ebcbeeb2
  • master default
2 results

Module.cs

Blame
  • first-comments.py 297 B
    #!/usr/bin/env python3
    
    # Nejprve zjistíme, do kolika počítat
    print("Do kolika chceš počítat?")
    n = int(input())
    
    # Aktuální číslo
    i = 1
    
    while i <= n:          # Ještě pokračovat?
        if i%2 == 0:       # Je číslo sudé?
            print(i)
        i += 1             # Další, prosím!