const num1: number = 10;
const num2: number = 20;
const res : number = num1+num2
console.log("sum is: "+res);
Kotlin Code
const num1: number = 10;
const num2: number = 20;
const res : number = num1+num2
console.log("sum is: "+res);
fun main(args: Array<String>) {
val first: Int = 10
val second: Int = 20
val sum = first + second
println("The sum is: $sum")
}
// Added
// Updated
const num1: number = 10;
const num2: number = 20;
const res : number = num1+num2
console.log("sum is: "+res);
const num1: number = 10;
const num2: number = 20;
const res : number = num1+num2
console.log("sum is: "+res);p