# Kotlin Sum of positive number

**URL:** <https://discuss.kotlinlang.org/t/kotlin-sum-of-positive-number/21657>\
**Category:** Support\
**Created:** [April 27, 2021, 4:55am UTC](https://discuss.kotlinlang.org/t/kotlin-sum-of-positive-number/21657 "2021-04-27T04:55:26Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Wasabi375](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/wasabi375/32/4741_2.png) [@Wasabi375](https://discuss.kotlinlang.org/u/Wasabi375)\
**Post date:** [May 12, 2021, 3:56pm UTC](https://discuss.kotlinlang.org/t/kotlin-sum-of-positive-number/21657/8 "2021-05-12T15:56:26Z")

</div>

> [@ashishsmse14](#):
>
> any suggestion

> [@Wasabi375](#):
>
> This sounds like homework so I’ll let you figure out the exact code 😉

As I said I won’t do your homework. What did you change based on my comment?

> [@ashishsmse14](#):
>
> yes but now it is fine but desire output not coming.

How do you know that. Do you have an example with the correct result? What is the error you get?  
It’s really hard to help you unless you give us some more information.

---

_[View the full topic](https://discuss.kotlinlang.org/t/kotlin-sum-of-positive-number/21657)._
