#include "stdafx.h"
#include "iostream"
using namespace std;
//alidoran
int main() {
int x, s = 0;
cout << "please input yopr number"<<endl;
cin >> x;
s += (x % 10);
x /= 10;
s += (x % 10);
x /= 10;
s += (x % 10);
x /= 10;
s += (x % 10);
x /= 10;
s += (x % 10);
x /= 10;
s += (x % 10);
x /= 10;
cout << "all number plus is : " << s<<endl;
system("pause");
return 0;
}
- ۹۶/۱۱/۲۱