Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. package com.example.schoolexamples
  2.  
  3. fun main() {
  4.  
  5. var sum = 0
  6.  
  7. for (i in 1 until 11) {
  8. println("Please Enter A Number{i}: ")
  9. sum += readLine().toString().toInt()
  10. }
  11. println(sum)
  12. }
  13.  
  14. //you can change this to whatever suits your needs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement