Created
January 20, 2014 22:17
-
-
Save rsayers/8530385 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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