Challenge: Write Your First Program
Oppgave
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.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 3
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Can you explain this in simpler terms?
What are some examples related to this topic?
Where can I learn more about this?
Fantastisk!
Completion rate forbedret til 6.67
Challenge: Write Your First Program
Sveip for å vise menyen
Oppgave
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.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 3
single