#include <stdio.h> int main() { int x=0, y=1; while(y<=30) { x=x+y; y++; } printf("la somma dei numeri da 0 a 30 è %d\n", x); }
To embed this project on your website, copy the following code and paste it into your website's HTML: