In: Computer Science
, you will be writing a simple calculator program that gets input from the user, does some calculation, and outputs the results to the user. Your program must have at least one input and at least one output, but you can choose the type of calculator you want to write. Some examples are:
Converting Celsius to Fahrenheit,
Python Code:-
#Displaying theme of program
print("------Celsius to Fahrenheit Converter------")
#Taking input from user anfd converting it into float
cels = float(input("Enter Temperature in Celsius: "))
#calculating fahrenheit temperature
fah = (cels * 9/5) + 32
#displaying output
print("Temperature in Fahrenheit : ",fah,'F')
Code Screenshot:-

Sample Output:-

Here I Attached Python Code And Sample Output
For Indentation Please Go Through Screenshots
For Any Queries Please Comment
Please Do Like