Philosophy, I beleive. He tought Sikander liturature and eloquence, but his most famous teachings were of philosophy.
Answer:
4
Explanation:
The loop is used to execute the part of code or statement again and again until a condition is not true.
syntax of for loop:
for(initialize; condition; increment/decrement){
statement;
}
in the question, the value of n is zero.
then, for loop check the condition k<2, initially the value of k is zero. so, the condition is true and execute the code n = 0 +2=2
Then, k is increment by 1. so, the value of k is 1.
then, again loop run and check the condition 1<2, it true. then n = 2+2=4.
then, k is increment by 1. so, the value of k is 2.
Then, again check the condition 2<2, condition false and program terminate the loop and finally print the value 4.
Answer:
FOUR(4)
Explanation:
There are three types of partitions, namely:
1. Primary partition
2. Extended partition
3. logical partition
A hard disk can have up to four primary partition or three primary partitions and an extended partition.
The extended partition basically functions as a container for the logical partition.
In situations that requires more than four partition the technician has to create three primary and one extended partition which will contain the extra partition know as the logical partition.
In python:
number = float(input("Enter a number "))
print(round(number - int(number), 2))