Compare commits
2 Commits
7cec159017
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f8373a9288 | ||
|
|
ac760d6f42 |
3
sum.c
3
sum.c
@@ -19,7 +19,6 @@ int main() {
|
|||||||
if (scanf("%d", &(arr[pos])) == EOF) {
|
if (scanf("%d", &(arr[pos])) == EOF) {
|
||||||
end_scan = 0;
|
end_scan = 0;
|
||||||
}
|
}
|
||||||
//scanf("%d", &(arr[pos]));
|
|
||||||
if( arr[pos] == 0 ) {
|
if( arr[pos] == 0 ) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -34,7 +33,7 @@ int main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
free(arr);
|
free(arr);
|
||||||
printf("You sum is: %d\n", sum);
|
printf("Your sum is: %d\n", sum);
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user