Age in Seconds

By Ziddykins on May 15, 2014

More simple challenge stuff. Converts age in years to age in seconds. Three kinds of years.

#!/usr/bin/perl
use warnings; use strict;

print "Enter your age: ";
my $age = <STDIN>;
my $regular = $age * 31536000;
my $julian = $age * 31557600;
my $gregorian = $age * 31556952;
print "You are $regular seconds old (365-day year)\n";
print "You are $julian seconds old (Julian year)\n";
print "You are $gregorian seconds old (Gregorian year)\n";

Comments

Sign in to comment.
dma   -  Dec 19, 2015

i already got bitched out from a chick name TheBitch what a wired thing

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.