{"id":26014598,"url":"https://github.com/brenonsc/portugolgeneration","last_synced_at":"2026-03-11T00:02:31.119Z","repository":{"id":187569468,"uuid":"677157652","full_name":"brenonsc/PortugolGeneration","owner":"brenonsc","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-10T22:16:21.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T02:36:27.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Portugol","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brenonsc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-10T22:13:41.000Z","updated_at":"2023-08-10T22:15:15.000Z","dependencies_parsed_at":"2023-08-11T05:58:19.812Z","dependency_job_id":null,"html_url":"https://github.com/brenonsc/PortugolGeneration","commit_stats":null,"previous_names":["brenonsc/portugolgeneration"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brenonsc/PortugolGeneration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenonsc%2FPortugolGeneration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenonsc%2FPortugolGeneration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenonsc%2FPortugolGeneration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenonsc%2FPortugolGeneration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brenonsc","download_url":"https://codeload.github.com/brenonsc/PortugolGeneration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenonsc%2FPortugolGeneration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30362705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-06T02:31:58.458Z","updated_at":"2026-03-11T00:02:29.655Z","avatar_url":"https://github.com/brenonsc.png","language":"Portugol","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Exercícios com vetores - Portugol :koko:\n\n1. Dado um vetor contendo 10 números inteiros não ordenados, construa um algoritmo que consiga ordenar o vetor em ordem decrescente, como mostra o exemplo abaixo:\n\n**ENTRADA:**\n\n| **vetor** | 2    | 5    | 1    | 3    | 4    | 9    | 7    | 8    | 10   | 6    |\n| --------- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- |\n\n**SAÍDA:**\n\n| **vetor** | 10   | 9    | 8    | 7    | 6    | 5    | 4    | 3    | 2    | 1    |\n| --------- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- |\n\n\n\nNa construção do Algoritmo, utilize os seguintes conteúdos:\n\n- Saída de dados\n- Laços Condicionais\n- Laços de Repetição\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n\n2. Elabore um algoritmo que leia 10 números inteiros e armazene em um vetor. Em seguida, mostre na tela:\n\n- Todos os elementos nos índices ímpares do vetor \n- Todos os elementos do vetor que são números pares\n- A Soma de todos os elementos do vetor\n- A Média de todos os elementos do vetor, armazenada em uma variável do tipo real\n\nVeja o exemplo abaixo:\n\n**ENTRADA:**\n\n| **vetor** | 2    | 5    | 1    | 3    | 4    | 9    | 7    | 8    | 10   | 6    |\n| --------- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- |\n\n**SAÍDA:**\n\n| **Elementos nos índices ímpares:** |\n| ---------------------------------- |\n| 5 3 9 8 6                          |\n| **Elementos pares:**               |\n| 2 4 8 10 6                         |\n| **Soma:**                          |\n| 55                                 |\n| **Média:**                         |\n| 5                                  |\n\n| ![Ícone  Descrição gerada automaticamente](https://lh5.googleusercontent.com/iU6aLkM-DO8LR_p6op9VUpruPtegYfBBBE1vMfbu83wmdmJSau4UOnYp591W1DckJX-pwMe2BGhr7Plzd9gEsj0_q17JdUgaUT2Ngl3LRTKGr38vruVjXBPEthmrLR4rlTsKcIUbIsckI5Q0TIij3A) | *Observe que o cálculo da média foi arredondado. O Portugol ao trabalhar com números inteiros arredonda o resultado das operações matemáticas automaticamente.* |\n| ------------------------------------------------------------ | ------------------------------------------------------------ |\n\nNa construção do Algoritmo, utilize os seguintes conteúdos:\n\n- Entrada e Saída de dados\n- Laços Condicionais\n- Laços de Repetição\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrenonsc%2Fportugolgeneration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrenonsc%2Fportugolgeneration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrenonsc%2Fportugolgeneration/lists"}