題組內容

2. A computer science professor has thirteen different programming books on a bookshelf. Six of the books deal with C++, the others with Java. In how many ways can the professor arrange these books on the shelf

(d) ifall the C++ books must be next to each other and all the Java books must be next to each other?