It kind of depends on the intended language, but I can see the following mistakes:
- lines not terminated with a semicolon (but not all languages require this)
- while statement missing parenthesis, ie., while (num1 <= num2), also not required in all languages
- statements below the while statement must be grouped by curly braces
- num1+5 should be num1=num1+5 or num1 += 5
Output will be:
10
15
20
25
30
Answer:
trees_to_cut = int(input("How many trees do you wants to cut? "))
print(str(trees_to_cut) + " tree(s) will be cut.")
for i in range(trees_to_cut):
print("Tree #" + str(i))
rings = int(input("How many rings in tree " + str(i) + "? "))
print("There are " + str(rings) + " ring(s) in this tree.")
for j in range(rings):
print("Celebrating tree #" + str(i) + "'s " + str(j+1) + ". birthday.")
Explanation:
*The code is in Python.
Ask the user to enter the number of trees to cut
Print this number
Create a for loop that iterates for each tree
Inside the loop:
Print the tree number. Ask the user to enter the number of rings. Print the number of rings. Create another for loop that iterates for each ring. Inside the inner loop, print the celebrating message for each birthday of the tree
Answer:
i would say yes since technology has evolved a lot over the years
Explanation:
This type of infection is this a characteristic of a computer worm
For better understanding, lets explain what computer Worms means.
- Computer Worm are commonly referred to as an independent program that often replicates or double itself by copying a fraction of itself onto another computer. They often exit in two forms. They are:
- Network Worm is a type of computer worm that replicates or copies different fraction of itself to computers linked together in known network.
- Host Worm is a type of computer worm that replicates or copies itself to another computer in a network and later on remove or deletes itself completely from the previous computer in which it was in.
- Computer worm are capable of replicating themselves without human intervention.
Learn more about computer worm from
brainly.com/question/19631265