+ 1

You are making a Celsius to Fahrenheit converter. Write a function to take the Celsius value as an argument and return the cor

11th Nov 2020, 3:58 PM
Dino Gupta
Dino Gupta - avatar
29 Antworten
+ 26
celsius = int(input()) def conv(c): #your code goes here return (c*9/5)+32 fahrenheit = conv(celsius) print(fahrenheit)
11th Nov 2020, 4:35 PM
Simba
Simba - avatar
+ 5
celsius = int(input()) #remember to indent your code def conv(c): #your code goes here #converts the celsius to fahrenheit return 9/5 * c + 32 fahrenheit = conv(celsius) print(fahrenheit)
10th Mar 2021, 5:36 AM
Siddhesh Panajkar
Siddhesh Panajkar - avatar
+ 1
celsius = int(input()) def conv(c): #your code goes here fahrenheit =con(c) fahrenheit = conv(c) print(fahrenheit)
11th Nov 2020, 4:07 PM
Dino Gupta
Dino Gupta - avatar
+ 1
Actually, the formula is provided on the question page. You just have to copy and paste into the function. https://code.sololearn.com/cmb1VX4r61pq/?ref=app
18th Dec 2020, 6:05 PM
Lam Wei Li
Lam Wei Li - avatar
+ 1
celsius = int(input()) remember to indent your code def conv(c): #your code goes here #converts the celsius to fahrenheit return 9/5 * c + 32 fahrenheit = conv(celsius) print(fahrenheit)
4th Feb 2021, 4:36 AM
Ronny Karani
Ronny Karani - avatar
+ 1
celsius = int(input()) def conv(c): #your code goes here return (c*9/5)+32 fahrenheit = conv(celsius) print(fahrenheit)
8th May 2021, 6:12 PM
Ajinkya khandagale
Ajinkya khandagale - avatar
+ 1
celsius = int(input()) def conv(c): #your code goes here fahrenheit = 9/5 * celsius + 32 return fahrenheit fahrenheit = conv(celsius) print(fahrenheit)
16th Apr 2023, 4:57 PM
AMINE MOUTAOUAKKIL
+ 1
import java.util.Scanner; public class Program { //your code goes here static double fahr(double c){ double calc = ((1.8 * c) + 32); return calc; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); double c = sc.nextDouble(); System.out.println(fahr(c)); } }
17th Aug 2024, 10:29 PM
ONYANGO EUGYNE ODHIAMBO
ONYANGO EUGYNE ODHIAMBO - avatar
+ 1
CORRECT import java.util.Scanner; public class Converter { static double fahr(double celsius) { double fahrenheit = 1.8 * celsius + 32; return fahrenheit; } public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print(""); double celsiusValue = scanner.nextDouble(); double fahrenheitValue = fahr(celsiusValue); System.out.println("" + fahrenheitValue); scanner.close(); } }
6th Oct 2024, 3:19 PM
BAMIGBAYE IBUKUNOLUWAPO
BAMIGBAYE IBUKUNOLUWAPO - avatar
0
Can anybody tell the code for this
11th Nov 2020, 4:03 PM
Dino Gupta
Dino Gupta - avatar
0
Thanks
11th Nov 2020, 4:34 PM
Dino Gupta
Dino Gupta - avatar
13th Nov 2020, 6:00 PM
Mr. Rahul
Mr. Rahul - avatar
0
Here is my solution if you can read it celsius = int(input()) def conv(c): #your code goes here result = (9/5*celsius+32) return result fahrenheit = conv(celsius) print(fahrenheit)
9th May 2021, 2:18 AM
Oscar Luis Sanchez
Oscar Luis Sanchez  - avatar
0
celsius = int(input()) def conv(c): #your code goes here result = (9/5*celsius+32) return result fahrenheit = conv(celsius) print(fahrenheit)
21st May 2021, 9:40 AM
mohammadSadeghi
mohammadSadeghi - avatar
0
celsius = int(input()) def conv(c): #your code goes here return (c*9/5)+32 fahrenheit = conv(celsius) print(fahrenheit)
1st Jun 2021, 9:20 AM
SHARON R
SHARON R - avatar
0
celsius = int(input()) def conv(c): #your code goes here return (c*9/5)+32 fahrenheit = conv(celsius) print(fahrenheit)
1st Jun 2021, 9:20 AM
SHARON R
SHARON R - avatar
0
celsius = int(input()) def conv(celsius): fahrenheit = (1.8 * celsius + 32) print(fahrenheit) conv(celsius)
10th Jul 2021, 6:52 PM
Hugues Rodrigue Tha Andela
Hugues Rodrigue Tha Andela - avatar
0
celsius = int(input()) def conv(c): fahrenheit=9/5*c+32 return fahrenheit fahrenheit = conv(celsius) print(fahrenheit)
31st Jul 2021, 7:32 AM
Devendra Sahu
Devendra Sahu - avatar
0
celsius = int(input()) def conv(c): fahrenheit = 9/5 * c +32 print(fahrenheit ) conv(celsius) #You may not put celsius value in function conv
4th Sep 2021, 10:04 PM
malik ansar
malik ansar - avatar
0
celsius = int(input()) def conv(c): #your code goes here return (9/5*c+32) fahrenheit = conv(celsius) print(fahrenheit)
10th Sep 2021, 2:35 AM
Vishal Majumdar
Vishal Majumdar - avatar