Jump to content

Bitwise operations: Difference between revisions

m
Line 718:
subroutine bitwise(a,b)
implicit none
integer, intent(in):: a,b
character(len=*), parameter :: fmt1 = '(2(a,i10))'
character(len=*),parameter :: fmt2 = '(3(a,b32.32),i20)'
 
100 format()
write(*,fmt1) 'input a=',a,' b=',b
write(*,fmt2) 'and : ', a,' & ',b,' = ',iand(a, b),iand(a, b)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.