added prompt for end

Signed-off-by: BuildTools <unconfigured@null.spigotmc.org>
This commit is contained in:
BuildTools
2021-01-03 16:46:18 -05:00
parent aa17c68aa5
commit 7cec159017

2
sum.c
View File

@@ -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;
}