Sign In
Ask Question
Computers & Technology
Hunter Farley
16 July, 06:27
How would you print from 1 to 1000
+2
Answers (
1
)
Nathanial Rich
16 July, 06:59
0
There are two ways to print 1 to 1000
Using Loops. Using Recursion.
Explanation:
Using loops
for (int i=1; i<=1000; i++)
{
cout<
}
Using recursion
Remember you can implement recursion using a function only.
void print (int n)
{
if (n==0)
return;
print (n-1);
cout<
}
you should pass 1000 as an argument to the function print.
Comment
Complaint
Link
Know the Answer?
Answer
Not Sure About the Answer?
Get an answer to your question ✅
“How would you print from 1 to 1000 ...”
in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers
You Might be Interested in
Keion works as a freelancer creating websites and designing logos for clients. He recently had a hard drive failure and lost work for a client, and he would like to prevent the same type problem from happening again.
Answers (1)
I got a set of headphones and when i plug them into my speakers the right side only works how do i fix the left side of them
Answers (1)
Business intelligence is gained through industrial espionage and the gathering of this information often includes illegal or unethical means. A) True B) False
Answers (1)
How do u verify ur email if you didn't get an email when u made ur account
Answers (1)
After Sally adds the Print Preview and Print command to the Quick Access Toolbar, which icon would she have added?
Answers (2)
New Questions in Computers & Technology
Think and lethargic are synonyms. T or F
Answers (1)
True or false. If the office computers are down, the medical administrative assistant should tell callers to call back in a few hours.
Answers (1)
What is FireWire? a type of connector often used for real-time applications a type of connector used for fiber optic cable a type of connector used to connect devices to the serial port on a computer a type of connector used for coaxial cable
Answers (2)
Kyle works at a nature observatory where they are tracking a bird's speed. he enters the distance the bird flies into cell a1 and the time it took into cell a2. which formula should kyle use?
Answers (1)
Hi, I'm new here. What can you tell me about artificial intelligence (AI) ?
Answers (1)
Home
»
Computers & Technology
» How would you print from 1 to 1000
Sign In
Sign Up
Forgot Password?