We are an independent Ukrainian forum of the city of Kharkiv. We have been supported by advertising, but since the war began, advertising revenue has ceased. If you have the opportunity, please help us with a donation. Support the forum
Ви використовуєте застарілий браузер. Цей та інші сайти можуть відображатися в ньому некоректно. Необхідно оновити браузер або спробувати використовувати https://www.google.com/chrome/
Fuelу огромный спс но за 20 мин до твоего сообщения до меня дошло . Вот код:
#include <iostream>
using namespace std;
int main(){
int m=20;//кол-во повторений
int a=0;
int b=1;
int c;
for(int i=0;i<=m;i++){
c=a+b;
cout << c << "\n";
a=b;
b=c;
}
cin.get();
cin.get();
return 0;
}