djelad1

Untitled

Nov 18th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. bool isSum = true;
  2. if ((sum + checkDigit) % 10 != 0)
  3. {
  4. isSum = false;
  5. }
  6. if (isSum)
  7. cout << "correct\n";
  8. else
  9. cout << "incorrect\n";
Advertisement
Add Comment
Please, Sign In to add comment