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.
Chat with our AI personalities
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);
write a c++ program to convert binary number to decimal number by using while statement
write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program
The word evaluate in the programming language COBOL can be used to replace a nested if statement. Instead of long statement evaluate allows one to shorten the coding required and write cleaner code.
1-6 sequence numbers. 7 (*) for comment (-) for continue (D) for debugging. 8-11 called as Area-A in this Area we can write Divisions,Paragraphs,sections,Level numbers. 12-72 called as Area-B in this area we can write cobol executable statements like select,accept,display. 73-80 is ignored area by compiler but we can see in source Listing.