/*-------------------------------------------------------------------*/ /* sumflat.c */ /*-------------------------------------------------------------------*/ #include int i; int iFirst; int iSecond; int iSum = 0; int main(int argc, char *argv[]) { printf("Enter an integer: "); scanf("%d", &iFirst); printf("Enter another integer that is greater than the first: "); scanf("%d", &iSecond); i = iFirst; loop1: if (i > iSecond) goto loopend1; iSum += i; ++i; goto loop1; loopend1: printf("The sum of all integers between the two is %d.\n", iSum); return 0; }