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:
![](https://hi-static.z-dn.net/files/d66/59a60b32599486d0ad6f5a6abb63cd44.jpg)
Similar questions
Social Sciences,
8 months ago
Social Sciences,
8 months ago
Science,
8 months ago
English,
1 year ago
Accountancy,
1 year ago