Advertisement
punidota

Untitled

Sep 14th, 2015
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include "iostream"
  3. #include "conio.h"
  4. #include "cmath"
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     setlocale(LC_CTYPE, "russian");
  10.     double a;
  11.     double b;
  12.     double i = 1;
  13.     double sum;
  14.     double k;
  15.     while (k = 30, k <= 30, ++k)
  16.     {
  17.         cout << "Введите значение A:" << endl;
  18.         cin >> a;
  19.         cout << "Введите значение B:" << endl;
  20.         cin >> b;
  21.         k = rand();
  22.         sum = sqrt(a * i * sqrt(b / i)) * k;
  23.         cout << "Сумма ряда = " << sum << endl;
  24.         return(0);
  25.     }
  26.    
  27.     return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement