Starting from:

$30

IT210- Programming Assignment 1 Solved

Make your output look just like this. I will check with other 8-­‐digit numbers. The output below is from two runs. DO NOT loop to do multiple 8-­‐digit numbers in a single run. It is possible to do this assignment without using loops at all, however, your solution MUST use loops to calculate the sums.

Enter an 8-digit credit card number: 12345678
The number is not valid. The check digit should be: 4

Enter an 8-digit credit card number: 12345674 That number is valid.

More products