There is room player enter the length and width to resize the room my needed is when room size is increased or decreased I want to calculate how much bed can be arranged in the room for example if room length is 100 and width is 50 now the room can accommodate 10 bed if player change the width to 200 and width 100 now room can accommodate 20 bed like wise I want to calculate how much bed can be accommodate when length and width is changed
Based on the information you’ve provided, this will work
int numOfBeds = Mathf.Max(roomLength, roomWidth) / 10;