Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Variable Practice | Variables and Data Types
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C++ FOundations: V1

bookChallenge: Variable Practice

Tarefa

Swipe to start coding

Write a C++ program that does the following:

  • Declare an int variable and assign it a value.
  • Declare a double variable and assign it a value.
  • Declare a std::string variable and assign it a value.
  • Print all three variables to the console, each on a separate line.

Your program should contain a main function as the entry point. Use std::cout to print the variable values. Remember to include the necessary headers for using std::string and std::cout.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 3
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Variable Practice

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Write a C++ program that does the following:

  • Declare an int variable and assign it a value.
  • Declare a double variable and assign it a value.
  • Declare a std::string variable and assign it a value.
  • Print all three variables to the console, each on a separate line.

Your program should contain a main function as the entry point. Use std::cout to print the variable values. Remember to include the necessary headers for using std::string and std::cout.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 3
single

single

some-alt