DEV Community

Akash
Akash

Posted on

Looping in python

  1. A priest took flowers from his garden and he used half of flowers he had for prayer while he visiting 7 temples in a row after visiting 7 temples he went home with 1 flower.find how many flowers he plucked from his garden?

OUTPUT:

2.Tenali Raman said if you let me to see king he will definietly give me a reward and he offered securities if they let him in he give half of his rewards to them,after seeing tenali king gets angry and punish him with 512 beats if he give half of his beats to securities how many securities he passed to meet king?

OUTPUT:

3.Two Train were ready to start journey from chennai to kanyakumari covering 30 stations A train stops after 3 stations,B Train stops after 5 stations now in which number of station B train driver meet A train driver ?

OUTPUT:

Top comments (0)