Challenge: 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ää?
Kiitos palautteestasi!
Osio 1. Luku 3
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Mahtavaa!
Completion arvosana parantunut arvoon 6.67
Challenge: 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
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 3
single