Untitled
#include <iostream> using namespace std; int main() { int n; cin >> n; int a; int sum=0; int sum = 0; while (n > 0) { a = n % 10; n /= 10; sum = +a; } cout << n; }
#include <iostream> using namespace std; int main() { int n; cin >> n; int a; int sum=0; int sum = 0; while (n > 0) { a = n % 10; n /= 10; sum = +a; } cout << n; }