coding problem using salford FTN95

From: bab (bab_at_bab.bab)
Date: 11/03/04


Date: Tue, 2 Nov 2004 23:33:45 +0000 (UTC)

Please help a friend who asked me about programming problem, I know nothing
about programming.

The problem is that he cannot make it calculate for values less than 0 but
above it is ok

Program
pi = 4*atan(1.0)
write(*,*)'diameter of cylinder?'
read(*,*)dia
write(*,*)'length of cylinder?'
read(*,*)length
sarea = pi*dia*length
vol = pi*(dia**2)*length/4.
write(*,*)' '
write(*,*)'diameter of cyl. =',dia
write(*,*)'length of cyl. =',length
write(*,*)'surface area of cyl. =',sarea
write(*,*)'volume of cyl. =',vol
stop
end program

thank you for your time.



Relevant Pages

  • Re: coding problem using salford FTN95
    ... > Please help a friend who asked me about programming problem, ... sarea = pi*dia*length ... write'diameter of cyl. ...
    (comp.lang.fortran)
  • Re: Good book for an absolute beginner on VB.net or 2005 with data
    ... understanding of code blocks, code sequencing, procedures / functions, ... If your friend does not want to commit the time ... Reality check, anything worth learning, is worth learning right (not sure ... If your friend wants the microwave approach to programming ...
    (microsoft.public.vsnet.general)
  • Re: Good book for an absolute beginner on VB.net or 2005 with data
    ... and do not attempt programming ... ... principles) he will not go too far in this industry. ... if your friend does not want to learn ... Reality check, anything worth learning, is worth learning right ...
    (microsoft.public.vsnet.general)
  • Re: Help with research
    ... I am an experienced OO developer and have a friend that is so too. ... We tried to do pair programming: ... I think with respect to the larger scale design we are not so different. ...
    (comp.lang.php)
  • Re: - E04 - Leadership! Google, Guido van Rossum, PSF
    ... Still has nothing to do with my friend or anyone else who works at Google. ... >>programming and/or developing large software systems a plus. ... Some Lisps are self-hosting. ...
    (comp.lang.python)