Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.schoolexamples
- fun main() {
- var sum = 0
- for (i in 1 until 11) {
- println("Please Enter A Number{i}: ")
- sum += readLine().toString().toInt()
- }
- println(sum)
- }
- //you can change this to whatever suits your needs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement