Logo 
Search:

Cobol Articles

Submit Article
Home » Articles » Cobol » Homework HelpRSS Feeds

PROGRAM TO USE OF LEADING AND TRAILING

Posted By: Paige Hughes     Category: Cobol     Views: 1821

WRITE A PROGRAM TO USE OF LEADING AND TRAILING.

Code for PROGRAM TO USE OF LEADING AND TRAILING in Cobol

       IDENTIFICATION DIVISION.
       PROGRAM-ID. T1.
       DATA DIVISION.
           01 NUM1 PIC S99 SIGN IS LEADING.
           01 NUM2 PIC 99V99.
           01 NUM3 PIC S99 SIGN IS TRAILING.
       PROCEDURE DIVISION.
       PROG.
           DISPLAY "ENTER NO="
           ACCEPT NUM1.

           
           DISPLAY "LEADING NUMBER IS =" NUM1.
           DISPLAY "TRAILING NUMBER IS =" NUM3.
           STOP RUN.


/*********************************************************************************
OUTPUT
*********************************************************************************/
ENTER NO = 20 LEADING NUMBR IS = +20 TRAILING NUBER IS = 00+
  
Share: 


Didn't find what you were looking for? Find more on PROGRAM TO USE OF LEADING AND TRAILING Or get search suggestion and latest updates.

Paige Hughes
Paige Hughes author of PROGRAM TO USE OF LEADING AND TRAILING is from London, United Kingdom.
 
View All Articles

Related Articles and Code:


 

Other Interesting Articles in Cobol:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!