Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
194 B
1
Indexable
#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;
}