🟢 Վարժություն 12

Գրել ծրագիր, որն էկրանին տպում է տրված ոչ բացասական ամբողջ թվի թվանշանների գումարը։
// input:  1033
// output: 1 + 0 + 3 + 3 = 7

#include <iostream>
int main() {
	int n;
  std::cin >> n;
  //Put your code here
}
 

Constraints

Time limit: 0.2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue