Transcribed Image Text: Answer In C++ only
The covid -19 is the one diseces for which the world even don’t know In these days of
pandemic that cause to the lockdown, Rahul’s bussiness is in Loss. On Oth day of
Lockdown the loss was Rs P, then Rs Q on the 1st day. Rahul observed loss as a
function and wanted to calculate the loss on nth day of the
Lockdowni.e. F(n)=F(n-1)tF(n-2)+F(n-1)*F(n-2)F(n)=F(n-1)+F(n-2)+F(n-1)-F(n
-2)
You have the loss on Oth day and the 1st day of pandemic time. You have to find the
loss on nth day.
Sample Input:
2|
1 2 3
2 3 3
Sample Output:
17
47