DAY 10 in python

Father,daughter story. Small girl asking to her father 5 rs daily.insted,father saying he'll give 1 rs on day 1 and so on until day 5. IN FATHER SIDE: total=0 no=1 while no

Apr 11, 2025 - 05:20
 0
DAY 10 in python

Father,daughter story.
Small girl asking to her father 5 rs daily.insted,father saying he'll give 1 rs on day 1 and so on until day 5.

IN FATHER SIDE:

total=0
    no=1
    while  no<=5:
      total = total+no
    print(total)

RESULT:

$ 15

IN DAUGHTER SIDE:

total=0
    no=1
    while no<=5:
      total = total+5
      no=no+1
    print(total) 

RESULT:

$ 25

THE FATHER WAS PROFIT AS  $ 10