added an output() function to move the I/O out of the algorithm
Sürükleyip bırakarak bir dosya ekle veya yüklemek için tıklayın