PHP Code
<?php
radius = int(input("What is your radius value?: "))
area = 3.14*radius**2
print (area)
Need to convert the input to an integer.
|
Python
Beginner (Serious Beginner) and need help |
(Oct 22, 2014 05:59 AM)Dalek Wrote: Already helped him with this mate. :) No, actually you royally fucked up by assuming he was using Python 2.x and gave him an incorrect solution. I gave a working 3.x solution (Oct 22, 2014 04:49 PM)ℱuryッ Wrote: Dude... P.E.M.D.A.S. Order of operations. Python has order of operations built in so it does it in that order anyway |
|
|