PROGRAM TO PRINT ONLY THE 1ST MULTILPLE OF A NUMBER IN PYTHON

PROGRAM TO PRINT ONLY THE 1ST MULTILPLE OF A NUMBER IN PYTHON


def f1st_multiple(L,x):
    for x in L:
        if x % i == 0:
            fmul = x
            break
    if x % i != 0:
        fmul = -1
    return fmul 

Leave a Reply

Discover more from XscalibaL

Subscribe now to keep reading and get access to the full archive.

Continue reading