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
Which column in a routing table tells the router which of its ports to use?
Answers (1)
If a network security professional wants to connect some computers in the same building without using a router, what type of network is being used? a. star topology b. WAN c. LAN d. peer-to-peer
Answers (1)
You work for an auto manufacturer and distributor. how could you use information systems to achieve greater customer intimacy?
Answers (1)
Organisms are classified as producers or consumers acorrding to the way they A) obtain B) release wastes C) produce offspring D) move from place to place
Answers (2)
Which of the following files stores information about local Dropbox installation and account, email IDs linked with the account, current version/build for the local application, the host_id, and local path information? A. filecache. db B. config.
Answers (1)
New Questions in Computers & Technology
in the lab, which domain had the greatest number of risks, threats, and vulnerabilities? a. WAN Domain b. Remote Access Domain c. LAN-to-WAN Domain d. User Domain
Answers (1)
You have added a new printer to the office. The printer is used by members of the Accounting department for printing forms and reports. The printer was not auto-detected, so you need to add the printer manually.
Answers (1)
Which is the largest component found inside a field? A. bits B. characters C. records D. tables
Answers (1)
Which of these is a biotic factor in an aquatic ecosystem? A. Seaweed B. Temperature change C. Dissolved oxygen D. Water
Answers (1)
Search engines like Google automatically sort reliable web sites from ones that are not reliable. true or false
Answers (1)
Home
»
Computers & Technology
» How would you print from 1 to 1000
Sign In
Sign Up
Forgot Password?