+ 1
Trying while in c pls help
Why this doesnt work #include <stdio.h> int main() { int num; int nomor; int total; while (num<5) {scanf("%d",&nomor); num++; total+=nomor;} printf("%d",total); return 0; }
2 Antworten
+ 3
Flash n you forget to give the value to the num variable.
e.g
int num=0;
Try this it will work.
0
Thanks