FnZ Posted January 17, 2016 Share Posted January 17, 2016 #include <iostream> using namespace std; int main() { int n,i,S; float E; cout << "Numarul="; cin >>n; S=0; i=1; while (i<=n) { S=S+i; i=i+1; } E=(float) 1/S; cout << "Ecuatia="<<E; return 0; } E= 1/(1+2+..+n) Link to comment Share on other sites More sharing options...
zL Dark ReturN Posted January 19, 2016 Share Posted January 19, 2016 Nu ai explicat mai nimic aici. Cine se uita nu intelege. Pe viitor fii mai atent si explica. Link to comment Share on other sites More sharing options...
Recommended Posts