# how many terms until the sum exceeds one million? target = 1000000 s=0 n=0 while(s<=target) { n=n+1 s=s+n } n