Severity: Notice
Message: Trying to access array offset on value of type bool
Filename: view/view.php
Line Number: 33
Severity: Notice
Message: Trying to access array offset on value of type bool
Filename: view/view.php
Line Number: 33
Severity: Notice
Message: Trying to access array offset on value of type bool
Filename: view/view.php
Line Number: 33
#include <iostream> using namespace std; int main() { int n; double suma=0; cout << "Podaj ile skladnikow chcesz dodac :"; cin>>n; for (int i=1;i<=n;i++) { suma=suma + 1/i; } cout << "Suma "<<n<<" skladnikow to :"<<suma; return 0; }