Answer:
55
Explanation:
Given the codes as below:
- for (int a = 0; a < 10; a++)
- {
- for (int b = 10; b > a; b--)
- {
- System.out.print("#");
- }
- }
There are two layer loops in the code. The outer loop (Line 1) will run for 10 iterations by traversing through a = 0 to a=9. However, the inner loop (Line 3) will run for 10 + 9 + 8 + 7 +...+ 1 = 55 iterations.
Since the print statement is within the inner loop (Line 5) and therefore the number of printed "#" symbols is dependent on the number of iterations of the inner loop. There will be 55 "#" symbols printed.
Answer:
we love silky because she is very honest
Answer:
ranforce = randi([0, 12]);
if (ranforce == 0)
disp('There is no wind')
else if(ranforce>0 && ranforce <7)
disp('There is a breeze')
else if(ranforce>6 && ranforce <10)
disp('This is a gale')
else if(ranforce>9 && ranforce <12)
disp('It is a storm')
else if(ranforce==12)
disp('Hello, Hurricane!')
end
Explanation:
<em>Replace all switch case statements with if and else if statements.</em>
<em>An instance is:</em>
<em>case {7,8,9}</em>
<em>is replaced with</em>
<em>else if(ranforce>9 && ranforce <12)</em>
<em>All other disp statements remain unchanged</em>
Answer:
Hi, in the law of Moore we can express aproxitmaly for each <em>two years</em> is duplicated the number of transitors in a microprocessor.
Explanation:
In around 26 years the number of transitors has increased about 3200 times, a transitor is a way to regulate the current voltage flow and can be act like a <em>switch</em> for an electronic signal.
I hope it's help you.