# -*- coding: utf-8 -*-
"""
Created on Thu Apr  9 07:28:24 2026

@author: student
"""

def celciusz_to_farenheit(wart):
    wynik = wart *9/5 + 32
    return wynik

def wypisz_for():
    for x in range(0,41,2):
        y = celciusz_to_farenheit(x)
        print(x,"w celciuszach to ", y,"w farenheitach")
    # print("kon for ",x) # tak nie nalezy robic
        
wypisz_for()


def wypisz_while():
    x = -2
    while x < 40:
        x += 2
        print(x)
    print("kon1 x =",x)    
        
        
#wypisz_while()   


def wypisz_while2():
    x = 0
    while x <= 40:
        print(x)
        x += 2
    print("kon2 x =",x)        
          
        
#wypisz_while2()