Complete the following program to test the output:
if(x>10), then
x+ = 1;
else
x-=1;
Answers
Answered by
0
"Img 53_11
The completed code takes input in a variable x and checks whether the variable has a value greater than 10 or less than ten or equal to 10.
If the value of variable x is greater than 10, then it increases the value of variable x by 1 otherwise if the value of variable x is less than or equal to 10, then it decreases x value by 1.
After, if and else statements, the printf statement is executed which prints the updated value."
Attachments:
Similar questions