The following are the required components of this assignment:
def convert2fahrenheit(celsius):
return (9 / 5) * celsius + 32
def main():
celsius = int(input('Enter a value for celsius: '))
print('Celsius:', celsius)
print('Fahrenheit:', convert2fahrenheit(celsius))
if __name__=='__main__':
main()
Comments
Leave a comment