SUBJECT:C PROGRAMMING
QUESTION: Draw the flowchart then write the C program usingelse if. The program reads one integer numberx. According to the value ofx, the program will calculate the value ofy and z and prints the result according to the following table:
Value ofx
Required Calculation
10-20
y= x-5,z=y+2+x
25 - 415
y= x-10,z=y-3
(-100) - (-50)
y= x-12,z=x+6
Any other value
“Error”
Flowchart
Program
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here