answersLogoWhite

0

identification division.

program-id. greatest.

environment division.

data division.

working-storage section.

77 a pic 999.

77 b pic 999.

77 c pic 999.

procedure division.

greatest.

display "ENTER THE THREE NUMBERS:".

accept a.

accept b.

accept c.

if a > b and a > c

display a "is greatest"

else if b > c

display b "is greatest"

else

display c "is greatest".

display " thank you".

stop run.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
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
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
More answers

45

User Avatar

Add your answer:

Earn +20 pts
Q: Write a program in COBOL to find the largest of N number?
Write your answer...
Submit
Still have questions?
magnify glass
imp