I have to make a lil program that does the following:
- Asks user to input a 10 digit number
- Checks that the inputted number is 10 digits no characters (numbers only)
- Extracts the first digit, 2nd and 3rd digits and the 4th to be used in an if statement.
Example: 4th digit can be either 1 or 0 (if there is a way to make the program only allow 1 or 0 that is great) if it's 1 then it will cout male, if yes then female.
ty