Answer:
Following are the code to this question:
x = int(input())#defining a variable x for user input value
if(x>=20 and x<=98):#defining an if block that checks value is in between 20 to 98
while(not(x%10==x//10)):#defining while loop that seprate numbers and checks it is not equal
print(x)#print value
x-=1# decrease value by subtracting 1
print(x)# print value
else:#defining else block
print("The input value must lie in 20-98")#print message
Output:
36
36
35
34
33
Explanation:
- In the above python program code, a variable x is declared, which is used to input the value from the user end.
- In the next step, a conditional statement is used in if block, it checks the input value is lie in 20 to 98, and to check its uses and logic date, if it is false it will goto else section in this, it will print a message.
- If the given value is true, inside if block a while loop is declared, that separately divide the value and check it is identical or not, if it is not identical it will print the value and checks its less value similarly.
Answer:
Grid computing involves connecting geographically remote computers into a single network to create a computational grid that combines the computing power of all the computers on the network to attack large computing problems.
<span>Quebec and British; French and Indian War</span>
The answer is False. Two organizations can have the same name for a computer. <span>Both </span>computers may<span> have the </span>same name<span>, are on the </span>same<span> subnet, and are on the </span>same domain<span>. But each </span>computer<span> has a unique IP address.</span>
Answer:
import math
l = float(input("Enter length in cm: "))
l = l / 100;
print("Entered length is " + str(l) + " meters")
area_square = l * l
print("Area of square is " + str(area_square))
area_circle = math.pi * l/2 * l/2
print("Area of circle is " + str(area_circle))
volume_cube = l * l * l
print("Volume of cube is " + str(volume_cube))
Explanation:
*The code is in Python
Ask the user to enter the length in cm
Convert the length to meters and print it
Calculate the area of the square and print it (Since length is equal to a side, the area is length * length)
Calculate the area of the circle and print it (Since length is equal to the diameter, you need to divide it by two to get the radius. The area is pi * length/2 * length/2)
Calculate the volume of the cube and print it (Since length is equal to a side, the volume is length * length * length)