Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (iNumberOfCards == 2)
- {
- (iSumOfCards) == (iFirstCard) + (iSecondCard);
- }
- else if (iNumberOfCards == 3)
- {
- (iSumOfCards) == (iFirstCard) + (iSecondCard) + (iThirdCard);
- }
- else if (iNumberOfCards == 4)
- {
- (iSumOfCards) == (iFirstCard) + (iSecondCard) + (iThirdCard) + (iFourthCard);
- }
- else if (iNumberOfCards == 5)
- {
- (iSumOfCards) == (iFirstCard) + (iSecondCard) + (iThirdCard) + (iFourthCard) + (iFifthCard);
- }
Add Comment
Please, Sign In to add comment