Let the selling price of one article be \(SP\) and the cost price of one article be \(CP\).
According to the problem, the selling price of 80 articles is equal to the cost price of 100 articles.
So, \(80 \times SP = 100 \times CP\)
We can find the ratio of selling price to cost price:
$$ \frac{SP}{CP} = \frac{100}{80} = \frac{5}{4} $$
This means that for every 4 units of cost price, the selling price is 5 units.
Gain \( = SP - CP \)
Let's consider the cost price of 4 articles as \(4x\). Then the selling price of 4 articles would be \(5x\).
Gain \( = 5x - 4x = x \)
Gain percentage is calculated as:
$$ \text{Gain Percentage} = \frac{\text{Gain}}{\text{Cost Price}} \times 100 $$
$$ \text{Gain Percentage} = \frac{x}{4x} \times 100 $$
$$ \text{Gain Percentage} = \frac{1}{4} \times 100 $$
$$ \text{Gain Percentage} = 25 $$
Therefore, the gain percentage is 25%.