- This topic is empty.
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
CS50's Introduction to Computer Science on Edx: Supplementary resource
CS50 threads to aide as a supplementary resource
CS50 threads to aide as a supplementary resource › Forums › CS50’s Introduction to Computer Science by Harvard University on Edx › Week 1 › Correct usage of or operator
Tagged: Or operator in c
I guess there is a syntactical error in if statement on line 68 while using or operator.
int checkifAmex (long y)
{
long x = y;
if (x/1000000000000 == 34 or x/1000000000000 == 35)
{
return 1;
}
else
{
return 0;
}
}
Reply
https://edstem.org/us/courses/176/discussion/1706076[learn_press_profile]