Advertisement
AI_UBI

Some Opt

Apr 9th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.13 KB | None | 0 0
  1.     string str = "Zdarova";
  2.     int sum=0;
  3.     for (auto &C : str) sum += int(char(str[i]));
  4.     printf("%d\n", sum);
  5.     return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement