Skip to content

Instantly share code, notes, and snippets.

@kalaiselvan369
Created June 8, 2023 11:18
Show Gist options
  • Save kalaiselvan369/7e8536f87b32acb6cd0e73ea8c6153ca to your computer and use it in GitHub Desktop.
Save kalaiselvan369/7e8536f87b32acb6cd0e73ea8c6153ca to your computer and use it in GitHub Desktop.
Assignment operators
fun main() {
// assignment operators
var sum = 3
sum += 3
println(sum)
var sub = 13
sub -= 3
println(sub)
var mul = 3
mul *= 3
println(mul)
var div = 3
div /= 3
println(div)
var mod = 12
mod %= 3
println(mod)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment