Create WhilePencacah.c
parent
61f3af9c87
commit
3744b32baf
|
@ -0,0 +1,11 @@
|
|||
#include <stdio.h>
|
||||
int main () {
|
||||
int a;
|
||||
int jumlah =0;
|
||||
|
||||
while(scanf("%d",&a) != EOF) {
|
||||
jumlah= jumlah+a;
|
||||
|
||||
}
|
||||
printf("%d\n",jumlah);
|
||||
}
|
Loading…
Reference in New Issue