Posts by Convidado • 1 point
2 posts
-
0
votes3
answers2365
viewsA: How to receive C input data until no more input?
while (scanf("%d",&num) != EOF) { sum += num; } To close the entry type CTRL-D.
-
0
votes1
answer59
views
2 posts
0
votes3
answers2365
viewswhile (scanf("%d",&num) != EOF) { sum += num; } To close the entry type CTRL-D.
0
votes1
answer59
views