/*-------------------------------------------------------------------*/ /* sumstackflat.c */ /*-------------------------------------------------------------------*/ #include int main(int argc, char *argv[]) { int i; int iFirst; int iSecond; int iSum; printf("Enter an integer: "); scanf("%d", &iFirst); printf("Enter another integer that is greater than the first: "); scanf("%d", &iSecond); iSum = 0; 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; }