Hello everyone!
I am trying to solve some exercises and i have this curious! exercise...
Which program is faster:
a)sum=0
do i=1, n
do j=1,m
sum=sum+a(i,j)
enddo
enddo
b) sum=0
do j=1,m
do i=1,n
sum=sum+b(i,j)
enddo
enddo
Does anybody knows this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.