Certainly! Below is an example of a C++ program that demonstrates multiple inheritance to calculate the average marks of six subjects. In this example, we'll create two base classes: `SubjectMarks` for storing marks of each subject, and `AverageCalculator` for calculating the average. The derived class `Student` will inherit from both of these base classes.
```cpp
#include <iostream>
using namespace std;
// Base class for storing subject