Sign In
Ask Question
Guest
Computers & Technology
7 April, 04:07
How would you print from 1 to 1000
+5
WhatsApp
Telegram
Twitter
Answers (
1
)
Daniel Whitney
7 April, 04:23
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?
Find an answer to your question 👍
“How would you print from 1 to 1000 ...”
in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers
You Might be Interested in
Contast between backups controlled within the SAN and backups controlled from the application server.
Answers (1)
Which is the output of the formula = NOT (12+12=24) ?
Answers (1)
Vannevar bush imagined a desktop computing machine that would allow people to access data stored in various information centers throughout the world. this device was called a: a. memex. b. mainframe. c. laptop. d. pc.
Answers (1)
What is the effect of block size in cache design?
Answers (1)
Not recycling cell phone for security reasons
Answers (2)
New Questions in Computers & Technology
What must you consider when determining the efficiency of an algorithm? Select two choices. a. The language in which the program is written b. The amount of resources, such as storage, required c. The number of characters used to write the program d.
Answers (1)
How to use translate on a website?
Answers (1)
When we consider data quality, what are the differences among validity, reliability, and representativeness? How can you know the data have high levels of these characteristics?
Answers (1)
You are creating a budget for your new business. What should you include? A. All income and expenses. B. Fixed expenses but not income. C. Income but not variable expenses. D. Fixed and variable expenses but not taxes.
Answers (1)
This resume format focuses on the tasks or skills that an applicant can perform is what? A chronological B functional C electronic or D scannable
Answers (1)
Home
»
Computers & Technology
» How would you print from 1 to 1000
Sign In
Ask Question
Menu
Calculator
Subjects
History
English
Mathematics
Biology
Physics
Chemistry
Geography
Social Studies
Business
Law
Arts
SAT
Advanced Placement (AP)
Computers & Technology
Engineering
Sign In
close
Sign In
Sign Up
Forgot Password?