You are on page 1of 1

program palabras_palindromas

integer :: sum
character (37) :: c
sum=0

read*,c

do i=1,len_trim(c)/2
if(c(i:i)==c(len_trim(c)-i+1:len_trim(c)-i+1)) then
end if
end do

if (sum==len_trim(c)/2) then
print*,'Es palindromo'
else
print*,'No ss palindromo'
end if

end

You might also like