answersLogoWhite

0


Best Answer

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

11y ago
This answer is:
User Avatar
More answers

45

This answer is:
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
Related questions

Second sem cobol question paper previous year?

Each question carries 10 marks. Explain the environment Division with example. Explain the Data Division with an example. Explain the various types of Move statements. Write a COBOL program to find a given integer is odd or even. An input file consists of the following Employee name, Employee number, Basic pay. Write a COBOL program to create an Indexed file which consists of Employee-name, Employee-number, Basic-pay and DA (DA = 25% of Basic-pay) Assume that an organisation has 20 departments. Each department has 5 stores. You are provided with total monthly sales of each stores for the month December 2000. Write a COBOL program to read the data, to write the sales report department wise and also write the total sales of the organisation.


What is the largest prime no that is stored in 8 bit pattern?

Write your own prime number program and find out.


Write a program to convert a 2 digit BCD number into hexadecimal number?

Write a program to convert a 2-digit BCD number into hexadecimal


What is the largest number you can write using the multiples of 3?

There is no largest number. You can just keep going.


How to write a program that ask user to enter numbers until user enter- 0 then find the biggest of entered numbers in C programming using while or do while?

int i, largest=0;do { scanf ("Enter a number (0 to exit): %d", i); if (i>largest) largest=i; } while (i!=0); printf ("Largest number is: %d\n", largest);


What is the largest number that is possible to write?

infinity


Is it possible to write the largest natural number?

No.


2 Write a program to convert a 2-digit BCD number into hexadecimal?

WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL


What is the largest number you can write with two digits?

99


Write a program which takes any number of days from the user the program should display the number of years number of months formed by these days as well as the remaining days?

Write a program which takes any number of days from the user. the program should display the number of years, number of months formed by these days as well as the remaining days.


What is the largest six digit number you can write using the numbers 381724?

874321 is the largest number made from all these digits.


What is the largest number you can write using roman numerals?

The largest number you can write using Roman numerals without an overline at any symbol is 3999 (MMMCMXCIX), and the largest possible number is 3999999 (MMMCMXCIXCMXCIX, with an overline over the first nine letters.