I've made this console application and it works...but only when you enter small numbers in the input like 1 in 'ifrom', 2 in 'step', and 3 in 'to'...but when I enter bigger numbers in 'to' for example 100 it just do nothing!!! It even doesn't give me any error! Thanks!
print("---Average2---"+"\n")
sum=0
average=0
counter=0
while True:
ifrom=int(input("From: "))
step=int(input("Step: "))
to=int(input("To: "))
while sum<=to:
sum=ifrom+step
counter+=1
if sum==to:
print("\n"+"The sum is: ",sum)
average=sum/counter
print("The average is: ",average,"\n")
sum=0
average=0
counter=0
break