Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cmath>
- #include <cstdio>
- #include <vector>
- #include <iostream>
- #include <algorithm>
- using namespace std;
- int main()
- {
- int tests, digit, sumof, sumofdigits;
- cin >> tests;
- while (tests >= 0 && tests <= 100)
- {
- return 0;
- }
- for (int i = 0; i < tests; i++)
- {
- cin >> digit;
- for (int k = 0; k < digit; k++)
- {
- sumof = 2 * digit;
- }
- string sum = itos(sumof);
- cout << sum;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement