0 6

C Programming05 marksRelational operators

What are relational operators and arithmetic operators? Write a C code to check if a given number is odd or even.

What are relational operators and arithmetic operators? Write a C code to check if a given number is odd or even. [5]

Relational operators are used to compare two values or expressions. They return either true (1) or false (0) based on the comparison. Operator Meaning Example ---------------------------- == Equal to a == b != Not equal to a != b Greater than a b < Less than a < b = Greater than or equal to a = b...

Up nextDefine iterative statements. Write a program that using a loop to compute and prints the s