Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Write Your First Program | Getting Started with C++
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C++ FOundations: V1

bookChallenge: Write Your First Program

Tehtävä

Swipe to start coding

Write a C++ program that prints your name and a short message to the console using std::cout.

  • In the main function, use std::cout to display your name.
  • On a new line, print a short message of your choice.
  • Make sure to include the iostream header and use the correct syntax for output.
  • The output should display your name and message on separate lines.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 3
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

bookChallenge: Write Your First Program

Pyyhkäise näyttääksesi valikon

Tehtävä

Swipe to start coding

Write a C++ program that prints your name and a short message to the console using std::cout.

  • In the main function, use std::cout to display your name.
  • On a new line, print a short message of your choice.
  • Make sure to include the iostream header and use the correct syntax for output.
  • The output should display your name and message on separate lines.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 3
single

single

some-alt