Hi,
I am very new to programming using FORTRAN. Please, you guys should help me out in the problem I will describe below:
I want to write a FORTRAN program that arranges the numbers in consecutive pairs. That is AABBAABBAABB, etc. Where A is positive and B is negative but both A and B are of the same magnitude. The program should be that should the number following immediately is not of the same sign that it changes the sign to be the same such that they occur in pairs as I showed below.
Thank you very much for your help.
I am very new to programming using FORTRAN. Please, you guys should help me out in the problem I will describe below:
I want to write a FORTRAN program that arranges the numbers in consecutive pairs. That is AABBAABBAABB, etc. Where A is positive and B is negative but both A and B are of the same magnitude. The program should be that should the number following immediately is not of the same sign that it changes the sign to be the same such that they occur in pairs as I showed below.
Thank you very much for your help.