Delete main.cpp
This commit is contained in:
parent
28c0096309
commit
7407c07fb9
1 changed files with 0 additions and 29 deletions
29
main.cpp
29
main.cpp
|
@ -1,29 +0,0 @@
|
||||||
#include <iostream>
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
int i,n;
|
|
||||||
float suma;
|
|
||||||
int f[100], f0, f1;
|
|
||||||
float zl;
|
|
||||||
|
|
||||||
|
|
||||||
cout << "N = ";
|
|
||||||
cin >> n;
|
|
||||||
f0 = 0;
|
|
||||||
f1 = 1;
|
|
||||||
cout << f0 << " " << f1 << " ";
|
|
||||||
for(i = 2;i<=n;i++) {
|
|
||||||
suma = f0 + f1;
|
|
||||||
cout << suma << " ";
|
|
||||||
f0 = f1;
|
|
||||||
f1 = suma;
|
|
||||||
}
|
|
||||||
|
|
||||||
zl = suma/f0;
|
|
||||||
|
|
||||||
cout << "\nZlota liczba = " << zl << endl;
|
|
||||||
|
|
||||||
system("pause");
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue