Salesforce Inc (CRM.N) said on Wednesday it would lay off about 10 percent of its employees and close some offices, becoming the latest tech firm to undertake cost cuts amid an economic slowdown.