Answer:
- public class Main {
-
- public static void main (String [] args) {
-
- for(int i = 1; i < 10; i++){
- int num = 0;
- num += i;
- }
- System.out.println(num);
- }
- }
Explanation:
In programming each variable has its scope. For example, a variable defined within the for loop has no longer exist outside the loop body. To illustrate this we can write a short program as presented above.
Firstly, create a for loop that traverse the number 1 - 10 (Line 5 - 8). Within the loop create a variable num and initialize it with zero (Line 6) and increment it with i value for each iteration (Line 7).
Outside the loop, we try to print the num (Line 9). When we run the program this will result in an error as the num which is declared inside the for loop will no longer exist outside the loop body.
Answer:
the domain is example.com. the path is /homepage
Explanation:
Internet Explorer 9+ is the web browser recommended to use with recorders.
<h3>What is a
web browser?</h3>
Anywhere on the internet is reachable with a web browser. It pulls data from other websites and shows it on your smartphone or computer. The HTTP Send Standard, which outlines how text, pictures, and audio are communicated on the web, is employed to transfer the data.
As we know,
Recorders are perfect for desktop applications because they can record a variety of items, including mouse clicks, scrolling, radio buttons, list boxes, checkboxes, and drop-down menus.
Thus, Internet Explorer 9+ is the web browser recommended to use with recorders.
Learn more about the web browser here:
brainly.com/question/19459381
#SPJ4
THIS IS FOR PYTHON
total = 0
for i in range(7, 35):
total += i
print(i)
print(total)
I forgot the reason but python always stops one number before your desired value. So that's why it's 35
When you write a program that will run in a GUI environment as opposed to a
command-line environment, some syntax is different.
Explanation:
- GUI (Graphical User Interface) which is the computer user interface uses graphical images to activate and run the applications.
- Command line interface is a interface that is in a text format, which can accept commands for a task.
- So, to program both interface, we need high level program skills with good understanding in programming languages like C++, C etc and algorithms.
- Here, the GUI syntax differs from the command line interface.