Program: First your program should ask if the credit card is MasterCard or visa card. Then ask the 16 digit credit card number. Then add all the digits in the credit card number and get the modulo 10.
If the modulo 10 of the summation of all the digits is zero, then its valid visa card. If the modulo 10 of the summation of all the digits is 1 then its valid MasterCard. Otherwise, the number customer has entered is an invalid card number.
Write a C++ program that reads the card type and the card number and then determine if the card number entered is a valid card number
You need to prepare the C++ program reads the card type and then find if the card number entered is a valid card number