#include <stdio.h>

int main() {
    int a=0, b=1; 
    while(b<=20) {  //somma dei numeri da 0 a 20
        a=a+b;
        b++;   
    }
    printf("la somma dei numeri da 0 a 20 è %d", a);
}

Embed on website

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