Guest User

Untitled

a guest
Jun 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.32 KB | None | 0 0
  1. #!/usr/bin/
  2. use warnings;
  3.  
  4. print "this program will attempt to compute the circumfrence of a circle.\n";
  5. print "\n";
  6. print "Please enter in the radius of your circle.\n";
  7. $radius = <STDIN>;
  8.  
  9. until ($radius ne "\n") {
  10.     print "please enter a number ";
  11.     $radius = <STDIN>;
  12. }
  13. print 2 * 3.141592654 * $radius;
  14. print "\n";
Add Comment
Please, Sign In to add comment