Create WhilePencacah.c

master
MD15 2020-04-10 12:38:03 +07:00 committed by GitHub
parent 61f3af9c87
commit 3744b32baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

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