# help with sum of block

**URL:** <https://forum.makecode.com/t/help-with-sum-of-block/46231>\
**Category:** Help\
**Tags:** graphics-and-math, extension\
**Created:** [October 1, 2026, 3:14am UTC](https://forum.makecode.com/t/help-with-sum-of-block/46231 "2026-10-01T03:14:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cybercube](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cybercube/32/34628_2.png) [@Cybercube](https://forum.makecode.com/u/Cybercube)\
**Post date:** [October 1, 2026, 3:14am UTC](https://forum.makecode.com/t/help-with-sum-of-block/46231/1 "2026-10-01T03:14:38Z")

</div>

so, I was making the sum of block in mathematics. but how do you make that in makecode cause I I’m confused how to make sum of into a block.  
here’s the code:

```auto
    //% block="Sum of $index|from $num|to $num2| with block input"
    //% draggableParameters
    export function Sumof(num: number, num2: number, num3: number, handler: (index: number) => void) {
        return handler;
    }

```

[Summation - Wikipedia](https://en.wikipedia.org/wiki/Summation)
