sum=0for i in range(0,101,3): sum=sum+iprint(sum)
i=0sum=0while i<=100: sum=sum+i i=i+3print(sum)