repl.it
@phmenard/

1. Intro to Kotlin

Kotlin (beta)

No description

fork
loading
main.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
// The following function is provided for you and should not be edited. It is used for converting a Fahrenheit temperature to Celsius. 
fun fahrenheitToCentigrade(f: Double) = 5/9.0 * (f - 32)



var firstName = "Paul"
var lastName = "Menard"
var temperature = 72.5

var celsius = fahrenheitToCentigrade(temperature)

println("Hi, my name is $firstName $lastName. Today's temperature in Celsius is $celsius.")  
Welcome to Kotlin version 1.0.3