Skip to content

Instantly share code, notes, and snippets.

@rsayers
Created January 20, 2014 22:17
Show Gist options
  • Select an option

  • Save rsayers/8530385 to your computer and use it in GitHub Desktop.

Select an option

Save rsayers/8530385 to your computer and use it in GitHub Desktop.
program test1
integer :: a,b,c
do a=1,1000
do b=a+1,1000
do c=b+1,1000
if(a*a+b*b==c*c) then
if (a+b+c==1000) then
write(*,*) a,b,c
stop
end if
end if
end do
end do
end do
end program test1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment