Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Consider the following COBOL entries
05 X PIC 99 VALUE 10.
ADD 40 X TO X.
COMPUTE X = 3 * X - 40.
The result in X is

Answer Posted / mr.perfect

ADD A B TO C. (Means (A+B)+C moved in C)
ADD 40 X TO X
Value of X is 10
So, ADD 40 10 TO 10 (Gives 40+10+10 = 60)

Now, COMPUTE X = 3 * X - 40
Here , order of preference is - then * will come
so, it will calculate first X-40 = 60-40 =20
THEN, 3*20 == 60
Means X = 3 * 60 - 40 ==20
So answer is : 60

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you get the ksds file records into your cobol program?

1031


What do you understand by psb and acb?

1058


what is the difference between COBOL2 AND COBOL390?

2988


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2396


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1046


i want a program using by if, evaluate , string, unstring, perform, occurs?

4640


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1177


what happens if parmparameter passes zero bytes to the program

2083


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

1188


) what is the difference between AID and HANDLE AID?

2099


how can i see junk values in dclgen or in hostvariable of comp ?

2935


) How do u handle errors in BMS macro

1959


Explain how to differentiate call by context by comparing it to other calls?

1130


how do you reference the variable unblock file formats from cobol programs

1281


What guidelines should be followed to write a structured cobol prgm?

1091