RosettaCodeData/Task/IBAN/00DESCRIPTION

21 lines
823 B
Text
Raw Permalink Normal View History

2015-02-20 09:02:09 -05:00
{{wikipedia}}
2017-09-23 10:01:46 +02:00
The   [[wp:International_Bank_Account_Number|International Bank Account Number (IBAN)]]   is an internationally agreed means of identifying bank accounts across national borders with a reduced risk of propagating [[wp:Transcription_error|transcription errors]].
The IBAN consists of up to '''34''' alphanumeric characters:
::*   first the two-letter ISO 3166-1 alpha-2 country code,
::*   then two check digits, and
::*   finally a country-specific Basic Bank Account Number (BBAN).
2015-02-20 09:02:09 -05:00
The check digits enable a sanity check of the bank account number to confirm its integrity even before submitting a transaction.
2017-09-23 10:01:46 +02:00
;Task:
Validate the following fictitious IBAN: &nbsp; <tt> GB82 WEST 1234 5698 7654 32 </tt>
2015-02-20 09:02:09 -05:00
Details of the algorithm can be found on the Wikipedia page.
2017-09-23 10:01:46 +02:00
<br><br>