/* * tourloop1.c * For loop */ #include int main(void) { int xx; int sum=0; for (xx=1; xx<101; xx=xx+1) { sum=sum+xx; printf("The current values are xx = %d and sum = %d\n", xx, sum); } printf("The loop has concluded\n"); printf("The total sum of 1 to 100 is %d\n", sum); return 0; }