Click here to Skip to main content
15,887,886 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Repeat 2 Times{
display; "Tennessee";
display "Rocks"
}

What I have tried:

TennesseeRocksTennesseeRocks ??????
Posted
Updated 22-Jun-23 20:05pm
Comments
Patrice T 23-Jun-23 1:12am    
This is not C++
Mary Hickerson 23-Jun-23 10:45am    
That is all the info provided on the question.
jeron1 23-Jun-23 10:19am    
:joke:
Change Tennessee to Cleveland and see what happens.
Mary Hickerson 23-Jun-23 10:44am    
It is a quiz question and that is all the info given...I am assuming Tennessee Rocks Tennessee Rocks will be the result.
jeron1 23-Jun-23 11:47am    
Is it a C++ quiz?

Nope.
That's not valid C++ code. It won't even compile.

Starting with the 'Hello World' C++ program
C++
#include <iostream>

int main() 
{
  std::cout << "Hello World!\n";
}
have a look at the for loop contruct[^] and fill the gaps.
 
Share this answer
 
Absolutely nothing useful: that is nowhere near valid C++ code, and will not compile as a result.

Go back to your assignment, and read it again, carefully this time! :D
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900