num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))
operation = input("Which operation are you performing? (a/s/m/d) ")
if operation == "a":
print("{} + {} = {}".format(num1, num2, num1+num2))
elif operation == "s":
print("{} - {} = {}".format(num1, num2, num1-num2))
elif operation == "m":
print("{} * {} = {}".format(num1, num2, num1*num2))
elif operation == "d":
print("{} / {} = {}".format(num1, num2, num1/num2))
I hope this helps!
I would refuse. if you dont refuse they can get probable cause
The correct answer for the question that is being presented above is this one: "5.5" <span>Keeping in mind the role the order of precedence plays in equations, Excel would display as the result of the following equation? =(24+75)/(6*3): 5.5.</span>
I think the answer would be C
Answer:
D
Explanation:
Two dimensional array contain both rows and columns. Each row represented one record and each column represent one filed in that record.
for ex: int grades[5][3];
here array grades contains 5 rows and in each row we have 3 columns
if we have grades[i][j] then " i " represents number of rows and j represents the number of columns in that row.
j<grades[i].length represents i=0 to 2[here no of columns are 3, array index starts from 0 to 2]
The Answer is D