#include <stdio.h>

int main() {
    int i = 1, s = 0;

    while( i<=10 ) {
        // printf("la somma è %d e i vale %d\n",s,i);
        s = s + i;
        // printf("Sommo i ad s: la somma è ora %d\n",s);
        i = i + 1;
    }
    printf("la somma è %d\n",s);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: