#include <stdio.h>
//somma di tutti i numeri interi da 0 a 10 (da 1 a 10)
int main() {
int i, s; //oppure int i = 1, s = o
i = 1;
s = 0;
while(i<=10) {
s = s + i;
i = i + 1;
}
printf("la somma è %d", s);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: