- For educators
- English (US)
- English (India)
- English (UK)
- Greek Alphabet
This problem has been solved!
You'll get a detailed solution from a subject matter expert that helps you learn core concepts.
Question: CHALLENGE ACTIVITY 3.16.2: Conditional expression: Print negative or positive. Create a conditional expression that evaluates to string "negative" if userVal is less than 0, and "non-negative“ otherwise. Ex: If userVal is -9, output is: -9 is negative. 369486,16066123zqy7 1 test passed 1 #include 2 #include 3 4 int main(void) { 5 char condStr[50]; 6 int
Can you please help me with the solution in C ?
Problem Explanation
Use a conditional operator
Not the question you’re looking for?
Post any question and get expert help quickly.
IMAGES
VIDEO