Write programs with loops that computea.The sum of all even numbers between 2 and 100 (inclusive).b.The sum of all squares between 1 and 100 (inclusive).c.All powers of 2 from 20 up to 220.d.The sum of all odd numbers between a and b (inclusive), where a and b areinputs.e.The sum of all odd digits of an input. (For example, if the input is 32677, thesum would be 3 + 7 + 7 = 17.)
4, I rsltv P/,t P(M-.,, o) oj on" c'ff'"ol'ik(A ; lu+ 7 U=l oo /D ^--l,..- -,p '= 3l -!,-- -+ 3l I z0) a4) ZAJ -3rx J S Z '' t@h;J ztn I P(u--") -)_ tbo bc) t V'cts- p( Ar=^ ls) ' { LN:J ^)= o -X) -ltx = ) C C C w D u [/1r116 ,t,"l6r'/ 3) z y4. zr4z I / / t a a _E a