How can I create the function for this? It should display the sum of the numbers of Odd or Even from 1 to the input value

前端 未结 0 1552
耶瑟儿~
耶瑟儿~ 2021-02-13 11:05
fun main(){
    print("Enter a number: ")
    val a = rdInt()
    print("Display the sum of odd numbers[Y/N]: ")
    val choice = rd()
    var isOdd          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题