How can I create a function that takes two positive parameters and prints the sum of all odd numbers between them, using loops?

后端 未结 0 1977
礼貌的吻别
礼貌的吻别 2021-01-24 05:43

Define a function ​sum_odd​ that takes two positive integers ​m​ and ​n and prints the sum of all odd numbers between ​m​ and ​n ​(including ​m​ and ​n​ if they are odd). For ex

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