Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. #include <cmath>
  2. #include <cstdio>
  3. #include <vector>
  4. #include <iostream>
  5. #include <algorithm>
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.     int tests, digit, sumof, sumofdigits;
  11.  
  12.     cin >> tests;
  13.     while (tests >= 0 && tests <= 100)
  14.     {
  15.         return 0;
  16.     }
  17.  
  18.     for (int i = 0; i < tests; i++)
  19.     {
  20.         cin >> digit;
  21.         for (int k = 0; k < digit; k++)
  22.         {
  23.             sumof = 2 * digit;
  24.         }
  25.         string sum = itos(sumof);
  26.  
  27.         cout << sum;
  28.  
  29.     }
  30.  
  31.     return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement