Секція 6. Розділ 7
single
Challenge: Return Values
Свайпніть щоб показати меню
Завдання
Проведіть, щоб почати кодувати
Your task is to create a method that takes a Celsius value, converts it to Fahrenheit, and returns it.
- Create a method
ConvertToFahrenheitthat:- Accepts one parameter:
celsius(double)
- Converts the Celsius temperature to Fahrenheit using the formula:
Fahrenheit = Celsius * 9 / 5 + 32 - Returns the Fahrenheit value as a
double.
- Accepts one parameter:
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 6. Розділ 7
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат