retro64xyz icon

370 2.1

retro64xyz | PRO | 02/10/23 12:13:22 AM UTC | 0 ⭐ | 8999 👁️ | Never ⏰ | []
Perl |

340 B

|

Cybersecurity

|

0 👍

/

0 👎

#!/usr/bin/perl
use warnings;
 
print "What is your word that has six characters?\n";
$word = <>;
chomp($word);
print( substr($word, 0, -1) . "\n" );
print( substr($word, 0, -2) . "\n" );
print( substr($word, 0, -3) . "\n" );
print( substr($word, 0, -4) . "\n" );
print( substr($word, 0, -5) . "\n" );
print( substr($word, 0, -6) . "\n" );

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎