CodeSolved

A comprehensive source of programming questions and exercises

Conversion

Practice Easy 301/ Download 1373 Views

Write a program that receives the peripheral temperature to Celsius and converts it to Fahrenheit and display it at the output.


Fahrenheit = (Celsius × 1.8) + 32

16 Answers

This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
cs = int(input("enter Celsius: "))
fr = (cs * 1.8) + 32
print(fr)
Amirali Download Python
selsiyos = int(input("enter your number:"))
farenhayt = (1.8 * selsiyos) + 32
print(f"farenhayte:{farenhayt}")
degree = float(input("Please enter the ambient temperature in Celsius: "))
print("Degrees in Fahrenheit: ", (1.8 * degree) + 32,"F")
dama=float(input("enter dama:"))
formul=dama*1.8
result=formul+32
print(result,"farenhot")
Roghaye.m Download Python
class Dama:
	def __init__(self,number):
		self.number=number
		
	def Solve(self):
		return (self.number*1.8)+32

number=float(input("enter dama:"))
obj=Dama(number)
print(obj.Solve(),"faranhat")
Roghaye.m Download Python
# Temperature conversion program from Celsius to Fahrenheit
# Receive the Celseyus temperature from the user
celsius = float(input("لطفاً دمای محیطی را به سلسیوس وارد کنید: "))
# Conversion of temperature to Fahrenheit
fahrenheit = (celsius * 1.8) + 32
# Display the result
print(f"دمای {celsius} درجه سلسیوس برابر با {fahrenheit} درجه فارنهایت است.")
User 136 Download Python
<< Previous page 1 2 Next page >>

Submit answer

Submitting answers is currently unavailable.

Related content

Detection using AI
×
×
Close