aboutsummaryrefslogtreecommitdiff
path: root/codechef/sumOfDigits.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'codechef/sumOfDigits.cpp')
-rw-r--r--codechef/sumOfDigits.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/codechef/sumOfDigits.cpp b/codechef/sumOfDigits.cpp
deleted file mode 100644
index f594465..0000000
--- a/codechef/sumOfDigits.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <bits/stdc++.h>
-
-using namespace std;
-
-int main() {
- ios_base::sync_with_stdio(false);
- cin.tie(NULL);
- int tt;
- cin >> tt;
- while (tt--) {
- int sum = 0;
- int x;
- cin >> x;
- while (x) {
- sum += x % 10;
- x /= 10;
- }
- cout << sum << endl;
- }
-}