#!/usr/bin/python3

def celciusToFahrenheit(temp):
	C=float(temp)
	F =(C*(9/5)) +32
	print(f"Η θερμοκρασία σε Φαρενάιτ είναι: {F}oF")

def fahrenheitToCelcius(temp):
	F=float(temp)
	C =(F-32) *(5/9)
	print(f"Η θερμοκρασία σε Κελσίου είναι: {C}oC")

def main():
	choice=int(input("Διάλεξε μετατροπή: 1->Κελσίου σε Φαρενάιτ, 2->Φαρενάιτ σε Κελσίου: "))

	if choice==1:
		temp=input("Δώσε θερμοκρασία σε βαθμούς Κελσίου(oC): ")
		f= celciusToFahrenheit(temp)
	elif choice==2:
		temp=input("Δώσε θερμοκρασία σε βαθμούς Φαρενάιτ(oF): ")
		c=fahrenheitToCelcius(temp)
if __name__=="__main__":
	main()
