Yo can’t code in MakeCode c or c++ without using GitHub thingies that are hard to understand
wait yall are learning? im stuck on B L O C K S
#include <stdio.h>
int main() {
int numbers[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int len = sizeof(numbers) / sizeof(numbers[0]);
int sum = 0;
for (int i = 0; i < len; i++) {
sum += numbers[i];
}
printf("Average: %.1f\n", (double)sum / len);
return 0;
}
I think that fixed it? I don’t have a compiler with me at the moment.
yeah, that’s fine, blocks can make some pretty good games, but if you want to go to higher coding, then I suggest learning some sort of typescript.
It would seem so… but who says it can’t be at a later date? I’ve gotta have hope! ![]()
I believe I see the problem; it’s something I didn’t catch at first either ![]()
Looking at the for loop, I noticed the slightest typo
...
for (i = 0; i < len; i++) {
sum + Numbers[i];
}
...
What I believe happened is that you forgot to also set the sum variable as well as increase it. Here’s a quick fix:
...
for (i = 0; i < len; i++) {
sum += Numbers[i];
}
...
Hope this helped!!
I don’t know python and the one time I tried it was somehow too hard for me even though it’s easier ![]()
then use a custom compiler! (I use Visual Studio (NOT Visual studio code) )
lol I’m working on learning MakeCode ts
I hate having to replay a whole section of my game just to see one part![]()
Duration - 5:28
thank you!
Just use functions and remove the less important functions like the loading and early stuff and then drag the area of the code directly into the start block
Yo guys I own a roll of unused, undeveloped, unexposed Fujichrome 35mm film
Bro comes out with the most random one liners ever
happy to help!



