(adsbygoogle = window.adsbygoogle || []).push({}); how to swap number in the fortran memory??

hello..

im new to fortran so how i swap number in do loop

first the tracing is like this:

x(1)=3

x(2)=8

then, how to i can swap the number in x(1) and x(2)

can anyone help me

please...

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# How to swap number in the fortran memory?

**Physics Forums | Science Articles, Homework Help, Discussion**