f2f : write a perl program that iterate from 10 to 1 and print "tic" when odd and "toe" when even
Anonymous
foreach $item (reverse 1..10){ if($item%2 ==1){ print "$item is odd TIC\n"; }else{ print "$item is even TOE\n"; }
Check out your Company Bowl for anonymous work chats.
Copyright © 2008-2026. Indeed, Inc. "Glassdoor," "Worklife Pro," "Bowls," and logo are proprietary trademarks of Indeed, Inc.