Modify a program so that it prints zero as the output.
Values and variables
Zero printer
Report a typo
Write a program in Scala 3
object Main extends App {
val a = 3
val b = 4
var c = a; + b
val d = c
- a - b
println(d)
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.