Pseudocode Example: Read 50 numbers and find their sum and average. (Pseudocode For Loop Example)
1 2 3 4 5 6 7 8 9 10 |
int counter, sum=0, num; for(int i=1;i<=50;i++) { print "enter a number"; read num; sum=sum+num; } print sum; |