Answer:
The program to this question can be given as:
Program:
factorial=1 #declare a variable.
number=int(input("Enter a positive integer:")) #input a number.
while (number>0): #loop
factorial= factorial*number # holding value in factorial variable
number=number-1
print('=',factorial) #print value.
Output:
Enter a positive integer:6
= 720
Explanation:
The description of the above python program can be given as:
- In the above program firstly we define a variable that is "factorial". In this variable, we assign a value that is 1 and it is used to calculate the factorial value.
- We define a variable "number". The number variable is used to take input from the user.
- Then we define a loop in the loop we calculate the factorial and hold the value in the factorial value in the last we print the value.
Umm okay...
The density of water is 1.0 g/cm^3
Which will float in water
A.) Ice (Density = 0.92 g/cm^3) Float or sink
B.) Wood (Density = 0.45 g/cm^3) Float or sink
C.) Bone (Density = 1.7 g/cm^3) Float or sink
If you help answer this it will be much appreciated thank you
Your answer is System Software. Hope this helps.