coding problem using salford FTN95
From: bab (bab_at_bab.bab)
Date: 11/03/04
- Next message: Peter J Ross: "Re: digest 2453311"
- Previous message: Ross: "Re: digest 2453311"
- Next in thread: Richard E Maine: "Re: coding problem using salford FTN95"
- Reply: Richard E Maine: "Re: coding problem using salford FTN95"
- Reply: jan van oosterwijk: "Re: coding problem using salford FTN95"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Peter J Ross: "Re: digest 2453311"
- Previous message: Ross: "Re: digest 2453311"
- Next in thread: Richard E Maine: "Re: coding problem using salford FTN95"
- Reply: Richard E Maine: "Re: coding problem using salford FTN95"
- Reply: jan van oosterwijk: "Re: coding problem using salford FTN95"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|