#include <stdio.h> #define SENTINEL 0 int main(void) { int sum = 0; /* The sum of numbers already read */ int current; /* The number just read */ do { printf("\nEnter an integer > "); scanf("%d", ¤t); if (current > SENTINEL) sum = sum + current; } while (current > SENTINEL); printf("\nThe sum is %d\n", sum); }