Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include "iostream"
- #include "conio.h"
- #include "cmath"
- using namespace std;
- int main()
- {
- setlocale(LC_CTYPE, "russian");
- double a;
- double b;
- double i = 1;
- double sum;
- double k;
- while (k = 30, k <= 30, ++k)
- {
- cout << "Введите значение A:" << endl;
- cin >> a;
- cout << "Введите значение B:" << endl;
- cin >> b;
- k = rand();
- sum = sqrt(a * i * sqrt(b / i)) * k;
- cout << "Сумма ряда = " << sum << endl;
- return(0);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement