//1) WHILE
#include
using namespace std;
int main() {
double h = 4;
double S = 0;
double k = 5;
while (k <= 51) {<br> S = S + sqrt(k);
k = k + h;
}
cout << "Sum = " << S << endl;<br> system("pause");
return 0;
}
//2) DO WHILE
#include
using namespace std;
int main() {
double h = 4;
double S = 0;
double k = 5;
do {
S = S + sqrt(k);
k = k + h;
} while (k <= 51);<br> cout << "Sum = " << S << endl;<br> system("pause");
return 0;
}