There are 13 digits in an airline ticket number. If an airline ticket number is valid, the 13th digit should be the remainder of division by seven of the first 12.
Write a function that returns true if a plane ticket number is valid and false otherwise.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers89
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2074 Solvers
-
1382 Solvers
-
Flip the main diagonal of a matrix
927 Solvers
-
647 Solvers
-
6372 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!