Answer:
Without Recursives
// Program is written using C++
// Comments are used for explanatory purpose
int main()
{
// Declare integer number, n
int n;
cout<<"Enter number of starts to print"
cin>>n;
// Iterate through to print * pattern
for(i=n; i>0;i--)
{
for(j=n; i>j-1;j--)
{
cout<<"*";
}
cout<"\n";
}
for(i=0; i< n; i++)
{
for(j=0;j<=i;j++)
{
cout<<"*";;
}
cout<"\n";
}
return 0;
}
Using Recursive
#include <iostream>
using namespace std;
void printStars(int lines);
int main()
{
// prompt the user to enter a number
int lines;
cin>> lines;
printStars(int lines);
return 0;
}
void printStars(int lines)
{
if (lines < 1)
return;
// to print the stars of a particular row
if (i <= lines)
{
cout << "* ";
// recursively print rest of the stars
// of the row
printPatternRecur(lines, i + 1);
}
else
{
// change line
cout << endl;
// print stars
printPatternRecur(lines-1, 1);
}
}
Answer:
the action of building something, typically a large structure.
Explanation:
mark me brainliest
Answer:
Prevent rust in the cooling system, prevent a clogged heater core, and to prevent the water pump from seizing.
Explanation:
Answer:
Fabrication benefits
Explanation:
Onsite construction can certainly begin more quickly when you are using concrete, stone, or brick. However, total construction time will lag behind that of building with steel. These materials require time to prepare and cure; and they result in more waste to move off site and dispose of.
Answer:
the editor
Explanation:
the variable is usually a number, and the conditional loop has nothign to do with movement/ where something is located