Answer:
The inserted text will appear as underlined text. The deleted text will appear as strike through text.
Explanation:
In HTML the text which has been inserted will appear as underlined text. It means if we insert something in HTML then it will underline it. This will highlight the text that has been inserted. While on the other hand if we delete some text and replace it with some other text, then it will appear as strikethrough text.
Strikethrough text is the text which is represented with a horizontal line in its center. It represents those words which are added by mistake and are not meant for inclusion.
Answer:
<u>Solution a</u>
- n = int(input("Enter an integer: "))
-
- sum = 0
-
- for x in range(1, n+1):
- sum += x
-
- print(sum)
<u>Solution b</u>
- n = int(input("Enter an integer: "))
-
- for a in range(1, n + 1):
- sum = 0
- for x in range(1, a+1):
- sum += x
- print(sum)
Explanation:
Solution code is written in Python 3.
<u>Solution a</u>
First get the user input for an integer (Line 1).
Create a variable sum and initialize it with zero value (Line 3).
Create a for loop to traverse through the number from 1 to integer n (inclusive) and sum up the current number x (Line 5-6).
Print the sum to terminal (Line 8).
<u>Solution b</u>
Create an outer for loop that traverse through the number from 1 to integer n (inclusive) (Line 3).
Create an inner loop that traverse through the number from 1 to current a value from the outer loop and sum up the current x value (Line 5-6).
Print the sum to terminal (Line 7) and proceed to next iteration and reset the sum to zero (Line 4).
<span>here is the expression: sizeof(int); Also here is the example how you can youse sizeof(int):
</span><span>int int_size(sizeof(int)); It's often used </span><span>to display the sizes of a number of variables:</span>