Computer Science, asked by akshatvashisht6, 5 months ago

Write a program to obtain temperature in celsius and convert it into Fahrenheit using the formula: F = C*9/5+32 in python ​

Answers

Answered by Imblank
55

Answer:

print("Enter Celcius :")

C = float(input())

F = C*9/5+32

print(C,"Degree celsius is ",F,"Degree Fahrenheit")

Read my bio once

Answered by BrainlyYoda
6

Program to obtain temperature in Celsius and convert it into Fahrenheit

celsiusTemp = float(input("Enter the temperature in Celsius: "))

fahrenheitTemp = (celsiusTemp * 9/5) + 32

print("The temperature in Fahrenheit is", fahrenheitTemp)

The above códe will convert the temperature from Celsius to Fahrenheit

Extra Information

Program to obtain temperature in Fahrenheit and convert it into Celsius

fahrenheitTemp = float(input("Enter the temperature in Fahrenheit: "))

celsiusTemp = (fahrenheitTemp - 32) * 5/9

print("The temperature in Celsius is", celsiusTemp)

The above códe will convert the temperature from Fahrenheit to Celsius

print() function will print the output to the console.

input() function is used to take the input from the user.

Python is created by Guido van Rossum and came into existence in 1991. It is a high-level and general programming language. It is a very lucid programming language as it has a good language construct and object-oriented approach. It is dynamically typed and garbage-collected.

Similar questions