prog7_5.py

def get_int():
    i = int(input("整数を入力して下さい:"))
    return i

x = get_int()
print(f"{x}の2倍は{x*2}です!")

# プログラム7-5(引数がない関数)