Online Compiler C

#include <stdio.h> #include <stdlib.h> int main(){ int num; scanf ("%d ",&num); int abs Num=abs(num); if absNum>=100&&absNum<=999){ printf("YES"); }else { printf("NO"); } return; }
1) This code checks if the absolute value of an input integer is a 3-digit number (between 100 and 999 inclusive). If yes, it prints "YES"; otherwise, it prints "NO".

2) Hints:
- Check for syntax errors in variable names (notice the space in "abs Num" and the typo in "absNum" later).
- The `return` statement at the end is missing a value (should be `return 0;` for `main()`).