Styles 3. Write the appropriate if statements for the following conditions, use
ID: 3751767 • Letter: S
Question
Styles 3. Write the appropriate if statements for the following conditions, use a reasonable variable name: If the variable angle is equal to 90 degrees, print the message "The angle is a right angle"; else print the message "The angle is not a right angle" a. b. If the variable number is larger than 100, add number to the variable bignumber if the number is smaller than 10, add number to the variable smolinumber, otherwise, add the number to the variable normainumber If the difference between temp1 and temp2 exceeds 2.3, set value of variable error to (temp1-temp2) factor c.Explanation / Answer
a)
if(angle==90) {
printf("The angle is a right angle ");
}
else {
printf("The angle is not a right angle ");
}
b)
if(number>100) {
bignumber+=number;
}
else if(number<10) {
smallnumber+=number;
}
else {
normalnumber+=number;
}
c)
if(abs(temp1-temp2)>2.3) {
error = (temp1-temp2)*factor;
}