#include <iostream>
using namespace std;
int main() {
cout << "Podaj ilość miesięcy" << endl;
int m, o2=0, o1=1, par=1;
cin >>m;
cout<< "Królików po " <<m<<
" miesiącach będzie " ;
for (int i=2;i<=m;i++)
{par=o1+o2;
o2=o1;
o1=par;}
cout << par<< " par ";
}
To embed this project on your website, copy the following code and paste it into your website's HTML: