answersLogoWhite

0

Identification division.

Program-id.

Environment division.

Data division.

Working-storage section.

77 f pic 9(3).

77 c pic 9(3)v99.

77 p pic z(3).z(2).

Procedure division.

Main-para.

Display " enter fahrenheit temperature ".

Accept f.

Compute c rounded = ( f - 32 ) * 5 / 9.

Move c to p.

Display " temperature in degree celsius " p.

Stop run.

User Avatar

Wiki User

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine

Add your answer:

Earn +20 pts
Q: Convert Fahrenheit to Celsius Codes in COBOL?
Write your answer...
Submit
Still have questions?
magnify glass
imp