Answer:
#include <iostream>
using namespace std;
int main()
{
int sum=0;//taking an integer variable to store the sum with initial value 0..
for(int i=1;i<=10;i++)//looping from 1 to 10..
{
sum+=i;//adding each i in the sum..
}
cout<<sum<<endl;//printing the sum..
return 0;
}
Explanation:
output :- 55
1.I have taken an integer variable sum which is equal to 0.
2.Looping over first ten positive integers.
3.Adding every number to sum.
4.Printing the sum.
Answer:
class Main {
public static void main(String args[]) {
Deque<Integer> stack = new ArrayDeque<Integer>();
Random rand = new Random();
for(int i=0; i<10; i++) {
int n = rand.nextInt(100);
System.out.printf("%02d ", n);
stack.push(n);
}
System.out.println();
while(stack.size() > 0) {
System.out.printf("%02d ", stack.removeFirst());
}
}
}
Explanation:
example output:
31 18 11 42 24 44 84 51 03 17
17 03 51 84 44 24 42 11 18 31
Answer:
<em>A voltage regulator.</em>
<em></em>
Explanation:
<em>A voltage regulator, controls the output of an alternating current or a direct current (depending on the design), allowing the exact amount of voltage or wattage to be supplied to the computer hardware</em>. This device sometimes uses a simple feed-forward design or may include negative feedback. The two major types of voltage regulator are based on either the electromechanical or electronic components.
<em>The electronic types were based on the arrangement of resistor in series with a diode or series of diodes, and the electromechanical types are based on coiling the sensing wire to make an electromagnet. </em>
It is false, Its obligatory.
The file tab helps with locating the backstage view