Advent Calendar - December 25, 2021

1 min read
← Back to Blogs
Advent Calendar - December 25, 2021

Advent Calendar 2021

|   Day 24   |   Day 25   |


Let’s conclude the event with the final present from me to all Perl fans. This video is picked from my YouTube Channel.



Task #1: Swap Odd/Even bits


You are given a positive integer $N less than or equal to 255.

Write a script to swap the odd positioned bit with even positioned bit and print the decimal equivalent of the new binary representation.





If you have any suggestion then please do share with us perlweeklychallenge@yahoo.com.

Advent Calendar 2021