Ir ao conteúdo
  • Cadastre-se

alkwelt

Membro Júnior
  • Posts

    2
  • Cadastrado em

  • Última visita

Reputação

1
  1. @isrnick como faço isso em uma recursão?
  2. Como faço para deixar um espaço entre o a, b, c, d e e no cout? #include <iostream> using namespace std; int teste(int a, int b, int c, int d, int e){ int maior; if(a>b and a>c and a>d and a>e) maior = a; if(b>a and b>c and b>d and b>e) maior = b; if(c>a and c>b and c>d and c>e) maior = c; if(d>a and d>b and d>c and d>e) maior = d; if(e>a and e>b and e>c and e>d) maior = e; return maior; } int main() { int a, b, c, d, e; cin>>a>>b>>c>>d>>e; cout<<a<<b<<c<<d<<e<<endl; cout<<teste(a , b, c, d, e)<<endl; return 0; }

Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas comunidades sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...

 

GRÁTIS: ebook Redes Wi-Fi – 2ª Edição

EBOOK GRÁTIS!

CLIQUE AQUI E BAIXE AGORA MESMO!