# Simple Inequality Questions Corrected in Coding

**URL:** <https://cl.desmos.com/t/simple-inequality-questions-corrected-in-coding/5601>\
**Category:** Questions\
**Created:** [April 11, 2024, 6:45pm UTC](https://cl.desmos.com/t/simple-inequality-questions-corrected-in-coding/5601 "2024-04-11T18:45:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luksetik](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@luksetik](https://cl.desmos.com/u/luksetik)\
**Post date:** [April 11, 2024, 6:45pm UTC](https://cl.desmos.com/t/simple-inequality-questions-corrected-in-coding/5601/1 "2024-04-11T18:45:30Z")

</div>

I have students comparing 2 quantities (6th grade) in a table. I cannot figure out how to have them type in an inequality symbol as their answer and have coding tell them if their answer is correct or not.

No graphing inequalities on a number line or graph… just comparing 2 numbers

Im assuming this is so difficult bc \<\> symbols mean things in coding?

I am not an expert, I usually copy and paste coding from other lessons and can change them to work for what I need EXCEPT for this!

Thank youuuuuuu

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [April 12, 2024, 5:16am UTC](https://cl.desmos.com/t/simple-inequality-questions-corrected-in-coding/5601/2 "2024-04-12T05:16:14Z")

</div>

You’ll be interested in using `parseInequality`. Maybe check out [this thread](https://cl.desmos.com/t/checking-correctness-of-an-inequality/1542), and/or search for parseInequality.

---

<div class="post-metadata">

**Author:** ![Daniel\_Wekselgreene](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_wekselgreene/32/1819_2.png) [@Daniel\_Wekselgreene](https://cl.desmos.com/u/Daniel_Wekselgreene)\
**Post date:** [April 12, 2024, 6:41pm UTC](https://cl.desmos.com/t/simple-inequality-questions-corrected-in-coding/5601/3 "2024-04-12T18:41:47Z")

</div>

Here is an example that shows how this can work: [use an inequality to compare • Activity Builder by Desmos Classroom](https://teacher.desmos.com/activitybuilder/custom/66197d84ff6d71665ecf2380)
