Calculating Total Within a Loop


#1

I tried in the same loop,but I got the total 0


Do I need to write another for loop to print and calculate the total?
#2

Hi @gangapuli,

Could you please post a link to the exercise you’re on and a copy of your code?