Correct usage of or operator › Forums › CS50’s Introduction to Computer Science by Harvard University on Edx › Week 1: [C] – Data Types, Operators, Conditional Statements, Loops, and Command Line › Correct usage of or operator Tagged: Or operator in c This topic has 0 replies, 1 voice, and was last updated 3 years, 5 months ago by admin. Viewing 1 post (of 1 total) Author Posts August 29, 2022 at 4:46 am #518 adminKeymaster I guess there is a syntactical error in if statement on line 68 while using or operator. [dm_code_snippet background=”yes” background-mobile=”no” slim=”yes” line-numbers=”yes” bg-color=”#abb8c3″ theme=”dark” language=”clike” wrapped=”yes” height=”” copy-text=”Copy Code” copy-confirmed=”Copied”] int checkifAmex (long y) { long x = y; if (x/1000000000000 == 34 or x/1000000000000 == 35) { return 1; } else { return 0; } } [/dm_code_snippet] Help appreciated. Reply https://edstem.org/us/courses/176/discussion/1706076[learn_press_profile] Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In