Guest User

Untitled

a guest
May 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. for (int i = 0; i < vector.GetLength(0); i++)
  2. {
  3. if (vector[i] < 10)
  4. {
  5. u = u + vector[i];
  6.  
  7. }
  8. if (vector[i] < 100)
  9. {
  10. valor = Convert.ToString(vector[i]);
  11. d = d + Convert.ToInt32(valor[0]);
  12. u = u + Convert.ToInt32(valor[1]);
  13. }
  14. else
  15. {
  16. valor = Convert.ToString(vector[i]);
  17. c = c + Convert.ToInt32(valor[0]);
  18. d = d + Convert.ToInt32(valor[1]);
  19. u = u + Convert.ToInt32(valor[2]);
  20. }
Add Comment
Please, Sign In to add comment