Answer:
There are two ways to print 1 to 1000
- Using Loops.
- Using Recursion.
Explanation:
Using loops
for(int i=1;i<=1000;i++)
{
cout<<i<<" ";
}
Using recursion
Remember you can implement recursion using a function only.
void print(int n)
{
if(n==0)
return;
print(n-1);
cout<<n<<" "';
}
you should pass 1000 as an argument to the function print.
Your answer is -
B. Folder Is the best place to save it
B. training is the correct answer
Since you are searching for researching information, .edu will be more reliable.
.edu is for education purpose, with credits of scholars.
.com is a general URL, it's not relavant to reliability.