From 7cec15901739f0b05726eaf221d69d690f392a0a Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 3 Jan 2021 16:46:18 -0500 Subject: [PATCH] added prompt for end Signed-off-by: BuildTools --- sum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sum.c b/sum.c index cb90204..995a048 100644 --- a/sum.c +++ b/sum.c @@ -15,7 +15,7 @@ int main() { int* arr = malloc(size * sizeof(int)); while(end_scan) { - printf("Enter a number: "); + printf("(Type EOF to end) Enter a number: "); if (scanf("%d", &(arr[pos])) == EOF) { end_scan = 0; }