大写字输出,怎么样用fortran95语言编写程序

2025-03-10 01:41:56
推荐回答(1个)
回答1:

character:: c
read(*,*) c
if ( c.ge.'a' .and. c.le.'z') c = char(ichar(c) - ichar(a) + ichar(A))
write(*,*) c
end