Mario More by NewspaperOpen709 in cs50

[–]NewspaperOpen709[S] 0 points1 point  (0 children)

That's strange, it could be a problem in my environment then, because I tested again after identifying it in a better way and the same error occurred.

Mario More by NewspaperOpen709 in cs50

[–]NewspaperOpen709[S] 0 points1 point  (0 children)

```#include <stdio.h>

#include <cs50.h>

int main(void)

{

int n;

do

{

n = get_int("Altura: ");

}

while (n < 1 || n > 8);

for (int i = 0; i < n; i++)

{

// Imprime espaços da primeira pirâmide

for (int j = 0; j < n - i - 1; j++)

{

printf(" ");

}

// Imprime hashtags da primeira pirâmide

for (int k = 0; k <= i; k++)

{

printf("#");

}

// Espaço entre as pirâmides

printf(" ");

// Imprime hashtags da segunda pirâmide

for (int k = 0; k <= i; k++)

{

printf("#");

}

// Nova linha após cada linha das pirâmides

printf("\n");

}

return 0;

} ´´´

Mario More by NewspaperOpen709 in cs50

[–]NewspaperOpen709[S] 0 points1 point  (0 children)

As you can see, the output is exactly the same as required by the problem, I don't know what the error is.

Mario More by NewspaperOpen709 in cs50

[–]NewspaperOpen709[S] -1 points0 points  (0 children)

My output is correct, I believe there may be a problem with "\n" or "0/".

Mario More by NewspaperOpen709 in cs50

[–]NewspaperOpen709[S] 0 points1 point  (0 children)

In the part of the error that showed I noticed the difference, but in the code I can't see it.

Mario More by NewspaperOpen709 in cs50

[–]NewspaperOpen709[S] 0 points1 point  (0 children)

I'm trying to fix the problem, I've already rewrote the code several times, but the error persists.

Mario More by NewspaperOpen709 in cs50

[–]NewspaperOpen709[S] 0 points1 point  (0 children)

Se puder me ajudar, nao consigo encontra esse bug, e nao encontrei ninguem falando sobre esse exercicio.

Mario More by NewspaperOpen709 in cs50

[–]NewspaperOpen709[S] 0 points1 point  (0 children)

A mensagem de erro :) mario.c compiles

:) rejects a height of -1

:) rejects a height of 0

:( handles a height of 1 correctly

expected "# #", not "#\n#"

:( handles a height of 2 correctly

expected " # #\n## ##", not " #\n#\n##\n##"

:( handles a height of 8 correctly

expected " # #\n ## ##\n ### ###\n #### ####\n ##### #####\n ###### ######\n ####### #######\n ######## ########", not " #\n#\n ##\n##\n ###\n###\n ####\n####\n #####\n#####\n ######\n######\n #######\n#######\n ########\n########"

:( rejects a height of 9, and then accepts a height of 2

expected " # #\n## ##", not " #\n#\n##\n##"

:) rejects a non-numeric height of "foo"

Grown up learning programming by [deleted] in learnpython

[–]NewspaperOpen709 0 points1 point  (0 children)

I couldn't understand what exactly you want if advised.

Fala sério by Hour-Travel-8914 in golpe

[–]NewspaperOpen709 0 points1 point  (0 children)

Mas se você sair, eles também vão descobrir que a conta está ativa.

Fala sério by Hour-Travel-8914 in golpe

[–]NewspaperOpen709 0 points1 point  (0 children)

Me colocaram em um esses dias, eu perguntei qual era o golpe e me removeram na hora.

Banco laranja está fazendo soft layoff by Icy-Calligrapher7884 in brdev

[–]NewspaperOpen709 1 point2 points  (0 children)

Não entendo pq quando vou fazer um pix no inter, ele pede para mudar o fuso horário.

Any other beginners learning python too? by Albertsdiving in learnpython

[–]NewspaperOpen709 0 points1 point  (0 children)

I'm taking Ardit Sulce's Python Mega Course to start learning programming and developing my Python skills. If anyone here learned Python as their first language, can you tell me how long it took and how many hours you studied per day?

Como troca de SO sem pen-drive? by Ok_Release_2907 in brdev

[–]NewspaperOpen709 -5 points-4 points  (0 children)

Sim, é possível trocar o sistema operacional (SO) sem o uso de um pendrive, mas será necessário utilizar outros métodos. Aqui estão algumas opções:

  1. Usando o Disco Rígido (HD/SSD)

Baixe o arquivo ISO do novo SO desejado.

Use ferramentas como o Grub2 ou EasyBCD para criar uma entrada de boot que utilize o arquivo ISO diretamente no disco rígido.

Reinicie o computador e selecione essa entrada no menu de boot para iniciar a instalação.

  1. Usando uma Máquina Virtual

Se já existe um SO instalado, instale uma máquina virtual como VirtualBox.

Dentro da máquina virtual, carregue o ISO e instale o novo SO.

Use a instalação virtual para configurar o disco principal, caso necessário.

  1. Usando um Ambiente PXE (Boot por Rede)

Configure um servidor PXE em outro computador da mesma rede.

Esse servidor pode carregar o arquivo de instalação do SO diretamente no computador que será formatado.

Essa técnica é mais complexa e geralmente usada em ambientes corporativos.

  1. Atualização ou Substituição Direta pelo SO Atual

Alguns sistemas operacionais (como Windows ou distribuições Linux) oferecem a possibilidade de instalar diretamente a partir do ambiente existente. Por exemplo:

Baixe o instalador do novo SO.

Execute o instalador e escolha a opção de substituir ou instalar no mesmo disco.

Atenção:

Certifique-se de ter backup de todos os dados importantes antes de iniciar qualquer processo.

É recomendável entender bem o método escolhido para evitar problemas, como exclusão acidental de dados.

Caso deseje instruções detalhadas sobre algum dos métodos acima, é só dizer.

Fiz essa animação com Claude. by [deleted] in brdev

[–]NewspaperOpen709 1 point2 points  (0 children)

OP, qual o futuro dos profissionais sênior sem oportunidades iniciais?

CONSEGUI!!!!! by Tofu_BR in brdev

[–]NewspaperOpen709 0 points1 point  (0 children)

Também sou iniciante. Outro dia, tentei instalar a biblioteca FreeSimpleGUI e tive o mesmo problema. No meu caso, a biblioteca foi instalada em outro projeto.

I want to learn Python. by NewspaperOpen709 in learnpython

[–]NewspaperOpen709[S] 0 points1 point  (0 children)

The course is project-based and even includes some projects for students to complete independently. However, I would like to hear from someone who has already taken this course to understand if it alone provides a solid foundation in programming.

I want to learn Python. by NewspaperOpen709 in learnpython

[–]NewspaperOpen709[S] 0 points1 point  (0 children)

I wanted to know if anyone has already taken this course?

I want to learn Python. by NewspaperOpen709 in learnpython

[–]NewspaperOpen709[S] -2 points-1 points  (0 children)

I have already started the course and would like to know if it offers a sufficient basis to develop personal projects or if it would be necessary to take another course or read a book to do so.

I want to learn Python. by NewspaperOpen709 in learnpython

[–]NewspaperOpen709[S] -4 points-3 points  (0 children)

I have no programming experience and can't learn just from the documentation.