Answer:
The main problem is the incorrect use of assignment operator, the correct way to check if two number are equal is
num1==num2
Explanation:
Here we have a created a simple function which takes two input arguments num1 and num2. In the body of the function we have used if condition to find out whether the two number are equal or not. If condition is true then print that values are equal. If condition is false then print that values are not equal. In the driver code, we have called the function two times with different values of num1 and num2 to check if it is working correctly.
The implementation logic is same in all these programming languages, the only difference the syntax.
Python Code:
def checkEquality(num1, num2):
if num1 == num2:
print("The values are equal.")
else:
print("The values are not equal.")
Driver Code:
checkEquality(2,5)
checkEquality(3,3)
Output:
The values are not equal.
The values are equal.
C++ Code:
void checkEquality(int num1, int num2) {
if (num1 == num2)
cout<<"The values are equal."<<endl;
else
cout<<"The values are not equal."<<endl;
}
Driver Code:
#include <iostream>
using namespace std;
void checkEquality(int num1, int num2);
int main()
{
checkEquality(2,5);
checkEquality(3,3);
return 0;
}
Output:
The values are not equal.
The values are equal.
Answer:
A: True
Explanation:
The given statement is true.
Answer:
umm can you tell me which video
The option that is an exception about the properties of magnesium is the option;
<u>Is typically made from </u><u>stampings</u>
The reason why the option is an exception is given as follows:
- Magnesium is a nonferrous metal as it is usually combined with manganese, zinc and aluminum.
- Within the group of structural metals, magnesium is the lightest, having a high strength-to-weight ratio.
- Magnesium posses good dampening characteristics, and is capable of reducing vibration of mechanical parts.
<em />
<em>However</em>
- Magnesium parts used for vehicle construction are die cast, and not made from stampings because magnesium is more difficult to stamp compared to aluminum.
Therefore, the correct option for the statement that is an exception from the true statements about magnesium is magnesium; <u>is typically made from stampings</u>
Learn more about the properties of magnesium here:
brainly.com/question/21011563
brainly.com/question/20032326
brainly.com/question/5106448
Answer:
For most uses you'll want your water heated to 120 F(49 C) In this example you'd need a demand water heater that produces a temperature rise and it will take about 2 hours