this is what it looks like now...
issolved= .false.
do while (.not. issolved)
issolved= .true.
do x=1,9
do y=1,9
if( A(x,y)>10) then
issolved= .true.
do j=1,9
if (A(x,j)<10) then
A(x,y)= vanish( A(x,y),A(x,j))
end if
end do
do i=1,9...
hi i am trying to write a program to solve a sudoku puzzle. I have some problems when compiling the program can anyone help me pls.
the program is
Program Assignment3
implicit none
integer :: A(9,9), vanish, g,h,i,j,xs,ys,k,m
logical :: issolved
open(unit=20,file="sudoku.txt")
do g=1,9...
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.