Create an equivalent section of java code


Discuss teh below:

Q1a. What is the output from the following section of FORTRAN code?

ISUM = 0
I = 1
20 IF (I .GT. 4) GO TO 30
ISUM = ISUM + I
I = I + 1
GO TO 20
30 WRITE (*,*) ISUM

b. Write an equivalent section of Java code.

Q2. What is true after the following statements in a C/C++ program have been executed?

int* intPointer;
intPointer = (int*) 500;
*intPointer = 10;

 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create an equivalent section of java code
Reference No:- TGS01935116

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)