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

BeauBeau
You're doing better than you think!
Chat with Beau
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
ReneRene
Change my mind. I dare you.
Chat with Rene

Add your answer:

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