{"id":1303,"date":"2021-02-23T22:05:14","date_gmt":"2021-02-23T22:05:14","guid":{"rendered":"https:\/\/www.ipocomputer.com\/lpc_en\/?p=1303"},"modified":"2021-04-21T02:29:01","modified_gmt":"2021-04-21T02:29:01","slug":"problem-3","status":"publish","type":"post","link":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/","title":{"rendered":"PROBLEM 3"},"content":{"rendered":"<blockquote>\n<h4>Problem: <span style=\"color: #808080;\">Calculation of the check digit<\/span><\/h4>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff6600;\"><strong><span class=\"\">Read a card file (ends with \/ * col 1-2) with CPF numbers and check the validity<\/span>.<\/strong><\/span><\/p>\n<blockquote><p>Calculation of the check digit of the CPF (BR &#8211; Registration physical personer), issued by the Federal Revenue Service.<\/p>\n<p>The CPF number has 9 digits plus two check digits, which are indicated after a slash. Therefore, a CPF has 11 digits. The CPF number is written in the form ABCDEFGHI \/ JK or directly as ABCDEFGHIJK, where the figures cannot all be the same.<\/p>\n<p><span class=\"\">The<strong><span style=\"color: #ff0000;\"> J<\/span><\/strong> is called the 1st check digit of the CPF number.<\/span><\/p>\n<p>The <span style=\"color: #800080;\"><strong>K<\/strong><\/span> is called the 2nd digit of the CPF number.<\/p>\n<p><strong><span style=\"color: #ff0000;\">First Digit<\/span><\/strong><\/p>\n<p>To obtain <strong><span style=\"color: #ff0000;\">J<\/span><\/strong>, we multiply A, B, C, D, E, F, G, H and I by the corresponding constants:<\/p>\n<table border=\"0\" width=\"322\" cellspacing=\"0\">\n<colgroup span=\"9\" width=\"20\"><\/colgroup>\n<tbody>\n<tr>\n<td align=\"center\" height=\"5\">A<\/td>\n<td align=\"center\">B<\/td>\n<td align=\"center\">C<\/td>\n<td align=\"center\">D<\/td>\n<td align=\"center\">E<\/td>\n<td align=\"center\">F<\/td>\n<td align=\"center\">G<\/td>\n<td align=\"center\">H<\/td>\n<td align=\"center\">I<\/td>\n<\/tr>\n<tr>\n<td align=\"center\" height=\"17\">x10<\/td>\n<td align=\"center\">x9<\/td>\n<td align=\"center\">x8<\/td>\n<td align=\"center\">x7<\/td>\n<td align=\"center\">x6<\/td>\n<td align=\"center\">x5<\/td>\n<td align=\"center\">x4<\/td>\n<td align=\"center\">x3<\/td>\n<td align=\"center\">x2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The result of the sum, 10A + 9B + 8C + 7D + 6E + 5F + 4G + 3H + 2I, is divided by 11.<\/p>\n<p>We then analyze the REST of that division:<\/p>\n<p>If it is 0 or 1, the digit J is [0] (zero). If it is 2, 3, 4, 5, 6, 7, 8, 9 or 10, the digit J is [11 &#8211; REST]<\/p>\n<p><span style=\"color: #800080;\"><strong>Second Digit<\/strong><\/span><\/p>\n<p>We already have <strong><span style=\"color: #ff0000;\">J<\/span><\/strong>. To obtain<span style=\"color: #800080;\"><strong> K<\/strong><\/span>, we multiply A, B, C, D, E, F, G, H, I and J by the corresponding constants:<\/p>\n<table border=\"0\" cellspacing=\"0\">\n<colgroup span=\"10\" width=\"40\"><\/colgroup>\n<tbody>\n<tr>\n<td align=\"center\" height=\"17\">A<\/td>\n<td align=\"center\">B<\/td>\n<td align=\"center\">C<\/td>\n<td align=\"center\">D<\/td>\n<td align=\"center\">E<\/td>\n<td align=\"center\">F<\/td>\n<td align=\"center\">G<\/td>\n<td align=\"center\">H<\/td>\n<td align=\"center\">I<\/td>\n<td align=\"center\"><span style=\"color: #ff0000;\">J<\/span><\/td>\n<\/tr>\n<tr>\n<td align=\"center\" height=\"17\">x11<\/td>\n<td align=\"center\">x10<\/td>\n<td align=\"center\">x9<\/td>\n<td align=\"center\">x8<\/td>\n<td align=\"center\">x7<\/td>\n<td align=\"center\">x6<\/td>\n<td align=\"center\">x5<\/td>\n<td align=\"center\">x4<\/td>\n<td align=\"center\">x3<\/td>\n<td align=\"center\">x2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The result of the sum, 11A + 10B + 9C + 8D + 7E + 6F + 5G + 4H + 3I + 2J, is divided by 11.<\/p>\n<p>We then verify the REST of that division:<\/p>\n<p>If it is 0 or 1, the digit <span style=\"color: #800080;\"><strong>K<\/strong><\/span> is [0] (zero). If it is 2, 3, 4, 5, 6, 7, 8, 9 or 10, the <strong><span style=\"color: #800080;\">K<\/span><\/strong> digit is [11 &#8211; REST].<\/p><\/blockquote>\n<\/blockquote>\n<div id=\"s3gt_translate_tooltip_mini\" class=\"s3gt_translate_tooltip_mini_box\" style=\"background: initial !important; border: initial !important; border-radius: initial !important; border-spacing: initial !important; border-collapse: initial !important; direction: ltr !important; flex-direction: initial !important; font-weight: initial !important; height: initial !important; letter-spacing: initial !important; min-width: initial !important; max-width: initial !important; min-height: initial !important; max-height: initial !important; margin: auto !important; outline: initial !important; padding: initial !important; position: absolute; table-layout: initial !important; text-align: initial !important; text-shadow: initial !important; width: initial !important; word-break: initial !important; word-spacing: initial !important; overflow-wrap: initial !important; box-sizing: initial !important; display: initial !important; color: inherit !important; font-size: 13px !important; font-family: X-LocaleSpecific, sans-serif, Tahoma, Helvetica !important; line-height: 13px !important; vertical-align: top !important; white-space: inherit !important; left: 535px; top: 837px; opacity: 0;\">\n<div id=\"s3gt_translate_tooltip_mini_logo\" class=\"s3gt_translate_tooltip_mini\" title=\"Traduzir o texto selecionado\"><\/div>\n<div id=\"s3gt_translate_tooltip_mini_sound\" class=\"s3gt_translate_tooltip_mini\" title=\"Reproduzir\"><\/div>\n<div id=\"s3gt_translate_tooltip_mini_copy\" class=\"s3gt_translate_tooltip_mini\" title=\"Copiar texto para \u00e1rea de transfer\u00eancia\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Problem: Calculation of the check digit &nbsp; Read a card file (ends with \/ * col 1-2) with CPF numbers and check the validity. Calculation [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1303","post","type-post","status-publish","format-standard","hentry","category-problems"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Problem: Calculation of the check digit Read a card file (ends with \/ * col 1-2) with CPF numbers and check the validity. Calculation of the check digit of the CPF (BR - Registration physical personer), issued by the Federal Revenue Service. The CPF number has 9 digits plus two check digits, which are\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Luis Garrett\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"iPO - Input Process Output\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"PROBLEM 3 - iPO\" \/>\n\t\t<meta property=\"og:description\" content=\"Problem: Calculation of the check digit Read a card file (ends with \/ * col 1-2) with CPF numbers and check the validity. Calculation of the check digit of the CPF (BR - Registration physical personer), issued by the Federal Revenue Service. The CPF number has 9 digits plus two check digits, which are\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2021-02-23T22:05:14+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-04-21T02:29:01+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"PROBLEM 3 - iPO\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Problem: Calculation of the check digit Read a card file (ends with \/ * col 1-2) with CPF numbers and check the validity. Calculation of the check digit of the CPF (BR - Registration physical personer), issued by the Federal Revenue Service. The CPF number has 9 digits plus two check digits, which are\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/2021\\\/02\\\/problem-3\\\/#blogposting\",\"name\":\"PROBLEM 3 - iPO\",\"headline\":\"PROBLEM 3\",\"author\":{\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/#organization\"},\"datePublished\":\"2021-02-23T22:05:14+00:00\",\"dateModified\":\"2021-04-21T02:29:01+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/2021\\\/02\\\/problem-3\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/2021\\\/02\\\/problem-3\\\/#webpage\"},\"articleSection\":\"PROBLEMS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/2021\\\/02\\\/problem-3\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/category\\\/general\\\/#listItem\",\"name\":\"GENERAL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/category\\\/general\\\/#listItem\",\"position\":2,\"name\":\"GENERAL\",\"item\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/category\\\/general\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/category\\\/general\\\/programming\\\/#listItem\",\"name\":\"PROGRAMMING\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/category\\\/general\\\/programming\\\/#listItem\",\"position\":3,\"name\":\"PROGRAMMING\",\"item\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/category\\\/general\\\/programming\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/category\\\/general\\\/programming\\\/problems\\\/#listItem\",\"name\":\"PROBLEMS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/category\\\/general\\\/#listItem\",\"name\":\"GENERAL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/category\\\/general\\\/programming\\\/problems\\\/#listItem\",\"position\":4,\"name\":\"PROBLEMS\",\"item\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/category\\\/general\\\/programming\\\/problems\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/2021\\\/02\\\/problem-3\\\/#listItem\",\"name\":\"PROBLEM 3\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/category\\\/general\\\/programming\\\/#listItem\",\"name\":\"PROGRAMMING\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/2021\\\/02\\\/problem-3\\\/#listItem\",\"position\":5,\"name\":\"PROBLEM 3\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/category\\\/general\\\/programming\\\/problems\\\/#listItem\",\"name\":\"PROBLEMS\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/#organization\",\"name\":\"iPO\",\"description\":\"Input Process Output\",\"url\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/author\\\/admin\\\/\",\"name\":\"Luis Garrett\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/2021\\\/02\\\/problem-3\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6d4ba9335c7f75e4895c2a1e14354e89c224690dbf9a5d4148aa74eac9348544?s=96&d=monsterid&r=g\",\"width\":96,\"height\":96,\"caption\":\"Luis Garrett\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/2021\\\/02\\\/problem-3\\\/#webpage\",\"url\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/2021\\\/02\\\/problem-3\\\/\",\"name\":\"PROBLEM 3 - iPO\",\"description\":\"Problem: Calculation of the check digit Read a card file (ends with \\\/ * col 1-2) with CPF numbers and check the validity. Calculation of the check digit of the CPF (BR - Registration physical personer), issued by the Federal Revenue Service. The CPF number has 9 digits plus two check digits, which are\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/2021\\\/02\\\/problem-3\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2021-02-23T22:05:14+00:00\",\"dateModified\":\"2021-04-21T02:29:01+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/#website\",\"url\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/\",\"name\":\"iPO\",\"description\":\"Input Process Output\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/retalhos.net\\\/ipocomputer\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"PROBLEM 3 - iPO","description":"Problem: Calculation of the check digit Read a card file (ends with \/ * col 1-2) with CPF numbers and check the validity. Calculation of the check digit of the CPF (BR - Registration physical personer), issued by the Federal Revenue Service. The CPF number has 9 digits plus two check digits, which are","canonical_url":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/#blogposting","name":"PROBLEM 3 - iPO","headline":"PROBLEM 3","author":{"@id":"https:\/\/retalhos.net\/ipocomputer\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/retalhos.net\/ipocomputer\/#organization"},"datePublished":"2021-02-23T22:05:14+00:00","dateModified":"2021-04-21T02:29:01+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/#webpage"},"isPartOf":{"@id":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/#webpage"},"articleSection":"PROBLEMS"},{"@type":"BreadcrumbList","@id":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/retalhos.net\/ipocomputer#listItem","position":1,"name":"Home","item":"https:\/\/retalhos.net\/ipocomputer","nextItem":{"@type":"ListItem","@id":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/#listItem","name":"GENERAL"}},{"@type":"ListItem","@id":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/#listItem","position":2,"name":"GENERAL","item":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/","nextItem":{"@type":"ListItem","@id":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/programming\/#listItem","name":"PROGRAMMING"},"previousItem":{"@type":"ListItem","@id":"https:\/\/retalhos.net\/ipocomputer#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/programming\/#listItem","position":3,"name":"PROGRAMMING","item":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/programming\/","nextItem":{"@type":"ListItem","@id":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/programming\/problems\/#listItem","name":"PROBLEMS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/#listItem","name":"GENERAL"}},{"@type":"ListItem","@id":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/programming\/problems\/#listItem","position":4,"name":"PROBLEMS","item":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/programming\/problems\/","nextItem":{"@type":"ListItem","@id":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/#listItem","name":"PROBLEM 3"},"previousItem":{"@type":"ListItem","@id":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/programming\/#listItem","name":"PROGRAMMING"}},{"@type":"ListItem","@id":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/#listItem","position":5,"name":"PROBLEM 3","previousItem":{"@type":"ListItem","@id":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/programming\/problems\/#listItem","name":"PROBLEMS"}}]},{"@type":"Organization","@id":"https:\/\/retalhos.net\/ipocomputer\/#organization","name":"iPO","description":"Input Process Output","url":"https:\/\/retalhos.net\/ipocomputer\/"},{"@type":"Person","@id":"https:\/\/retalhos.net\/ipocomputer\/author\/admin\/#author","url":"https:\/\/retalhos.net\/ipocomputer\/author\/admin\/","name":"Luis Garrett","image":{"@type":"ImageObject","@id":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/6d4ba9335c7f75e4895c2a1e14354e89c224690dbf9a5d4148aa74eac9348544?s=96&d=monsterid&r=g","width":96,"height":96,"caption":"Luis Garrett"}},{"@type":"WebPage","@id":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/#webpage","url":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/","name":"PROBLEM 3 - iPO","description":"Problem: Calculation of the check digit Read a card file (ends with \/ * col 1-2) with CPF numbers and check the validity. Calculation of the check digit of the CPF (BR - Registration physical personer), issued by the Federal Revenue Service. The CPF number has 9 digits plus two check digits, which are","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/retalhos.net\/ipocomputer\/#website"},"breadcrumb":{"@id":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/#breadcrumblist"},"author":{"@id":"https:\/\/retalhos.net\/ipocomputer\/author\/admin\/#author"},"creator":{"@id":"https:\/\/retalhos.net\/ipocomputer\/author\/admin\/#author"},"datePublished":"2021-02-23T22:05:14+00:00","dateModified":"2021-04-21T02:29:01+00:00"},{"@type":"WebSite","@id":"https:\/\/retalhos.net\/ipocomputer\/#website","url":"https:\/\/retalhos.net\/ipocomputer\/","name":"iPO","description":"Input Process Output","inLanguage":"en-US","publisher":{"@id":"https:\/\/retalhos.net\/ipocomputer\/#organization"}}]},"og:locale":"en_US","og:site_name":"iPO - Input Process Output","og:type":"article","og:title":"PROBLEM 3 - iPO","og:description":"Problem: Calculation of the check digit Read a card file (ends with \/ * col 1-2) with CPF numbers and check the validity. Calculation of the check digit of the CPF (BR - Registration physical personer), issued by the Federal Revenue Service. The CPF number has 9 digits plus two check digits, which are","og:url":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/","article:published_time":"2021-02-23T22:05:14+00:00","article:modified_time":"2021-04-21T02:29:01+00:00","twitter:card":"summary","twitter:title":"PROBLEM 3 - iPO","twitter:description":"Problem: Calculation of the check digit Read a card file (ends with \/ * col 1-2) with CPF numbers and check the validity. Calculation of the check digit of the CPF (BR - Registration physical personer), issued by the Federal Revenue Service. The CPF number has 9 digits plus two check digits, which are"},"aioseo_meta_data":{"post_id":"1303","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-01-15 01:08:38","updated":"2025-07-24 01:51:12","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/retalhos.net\/ipocomputer\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/retalhos.net\/ipocomputer\/category\/general\/\" title=\"GENERAL\">GENERAL<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/retalhos.net\/ipocomputer\/category\/general\/programming\/\" title=\"PROGRAMMING\">PROGRAMMING<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/retalhos.net\/ipocomputer\/category\/general\/programming\/problems\/\" title=\"PROBLEMS\">PROBLEMS<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPROBLEM 3\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/retalhos.net\/ipocomputer"},{"label":"GENERAL","link":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/"},{"label":"PROGRAMMING","link":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/programming\/"},{"label":"PROBLEMS","link":"https:\/\/retalhos.net\/ipocomputer\/category\/general\/programming\/problems\/"},{"label":"PROBLEM 3","link":"https:\/\/retalhos.net\/ipocomputer\/2021\/02\/problem-3\/"}],"_links":{"self":[{"href":"https:\/\/retalhos.net\/ipocomputer\/wp-json\/wp\/v2\/posts\/1303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/retalhos.net\/ipocomputer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/retalhos.net\/ipocomputer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/retalhos.net\/ipocomputer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/retalhos.net\/ipocomputer\/wp-json\/wp\/v2\/comments?post=1303"}],"version-history":[{"count":14,"href":"https:\/\/retalhos.net\/ipocomputer\/wp-json\/wp\/v2\/posts\/1303\/revisions"}],"predecessor-version":[{"id":1336,"href":"https:\/\/retalhos.net\/ipocomputer\/wp-json\/wp\/v2\/posts\/1303\/revisions\/1336"}],"wp:attachment":[{"href":"https:\/\/retalhos.net\/ipocomputer\/wp-json\/wp\/v2\/media?parent=1303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/retalhos.net\/ipocomputer\/wp-json\/wp\/v2\/categories?post=1303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/retalhos.net\/ipocomputer\/wp-json\/wp\/v2\/tags?post=1303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}