I'm a beginner who is making a program for a science fair, the project involves ultrasonic sensors and I'm trying to find velocity using them. I've come across an error (in the case section of the switch part) that I cannot understand and find and so I would really appreciate it if someone could help.
I've attached the code, here is the error;
Arduino: 1.6.12 (Windows 10), Board: "Arduino/Genuino Uno"
C:\Users\hivam\AppData\Local\Temp\untitled1388721930.tmp\sketch_oct19a\sketch_oct19a.ino: In function 'void loop()':
sketch_oct19a:71: error: expected primary-expression before '<=' token
case <= 80000:
^
sketch_oct19a:85: error: expected primary-expression before '<=' token
case <= 120000 && >80000:
^
sketch_oct19a:85: error: expected primary-expression before '>' token
case <= 120000 && >80000:
^
sketch_oct19a:109: error: expected '}' at end of input
}
^
exit status 1
expected primary-expression before '<=' token
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Code.txt (1.73 KB)