Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Curso C++ - Aula 30 - Estrutura while - eXcript
Play lesson

Curso C++ - Curso C++ - Aula 30 - Estrutura while - eXcript

5.0 (2)
15 learners

What you'll learn

This course includes

  • 8 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

Como a instrução "while" funciona? A instrução "while" funciona de maneira semelhante a instrução "for". A diferença é que com a instrução "while" nós conseguimos construir laços de repetição indefinidos ou então, laços que sejam executados enquanto uma condição for verdadeira. Por exemplo, a seguir, o bloco de instrução será repetido até que a condição definida no cabeçalho da estrutura deixe de ser verdadeiro: int x = 0; while(x != 1000) { x++; printf(x); } Assim, nós temos que a cada laço a variável "x" será incrementada em uma unidade e em seguida, ira imprimir na tela o valor da variável "x". + FAÇA UMA DOAÇÃO: http://www.excript.com.br/doe + Curso C++: http://excript.com/curso-cpp.html + DÚVIDAS? https://goo.gl/ApYFMC + PlayList: https://www.youtube.com/playlist?list=PLesCEcYj003QTw6OhCOFb1Fdl8Uiqyrqo + SITE: http://www.excript.com.br/ + FACE: http://www.facebook.com/excript + PERFIL PÚBLICO: https://goo.gl/4SPRVf + G+: https://plus.google.com/+excriptvideo + E-MAIL: [email protected]

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere