#include <stdio.h> int main() { int i, s = 0; for(i=1; i<=10; i=i+1) { //for(i=10; i>=1; i=i+1) conto al contrario s = s + i; } printf("S = %d\n", s); }
To embed this project on your website, copy the following code and paste it into your website's HTML: