SHARE
TWEET

Untitled

a guest Dec 6th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top