fork download
  1. f=@(n)fprintf('User: %s\nGroup: %s\nOthers: %s\n\n',{'Read Write and Execute','Read and Write','Read and Execute','Read only','Write and Execute','Write only','Execute only','None'}{56-n});
  2.  
  3. f('000')
  4. f('042')
  5. f('666')
  6. f('644')
Success #stdin #stdout 0.22s 103360KB
stdin
Standard input is empty
stdout
User:   None
Group:  None
Others: None

User:   None
Group:  Read only
Others: Write only

User:   Read and Write
Group:  Read and Write
Others: Read and Write

User:   Read and Write
Group:  Read only
Others: Read only