Skip to content

Instantly share code, notes, and snippets.

@muthu1809
Created April 18, 2022 17:43
Show Gist options
  • Save muthu1809/b93969e33c6e17104a9daa93bec52a4b to your computer and use it in GitHub Desktop.
Save muthu1809/b93969e33c6e17104a9daa93bec52a4b to your computer and use it in GitHub Desktop.
நெல்மணி = 1 #முதல் கட்ட நெல்மணி
கட்டம் = 1 #முதல் கட்டத்தில் இருந்து நெல்மணிகள் கூடத் தொடங்குகின்றன.
while கட்டம்<=64:
print(கட்டம், " ஆவது கட்டத்திற்கான நெல்மணி ", நெல்மணி)
நெல்மணி = 2**கட்டம் # ** என்பது பைத்தானில் அடுக்கைக் குறிக்கும்
கட்டம்+=1
else:
print("கடைசியில் ", நெல்மணி)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment