A Janesville man was sentenced Monday in federal court to 13 years in prison for multiple armed robberies in Janesville and Madison.