#include<stdio.h>
#include<stdlib.h>
// Uncomment this if when you copy this code to run it on HW
//#define RUN_ON_HW
#ifdef RUN_ON_HW
#define Serial1 Serial
#endif
// Define external assembly function
extern "C" {
int inc_by_1 (int n);
}
void setup() {
Serial1.begin(9600);
}
int main() {
int n, result;
// Get input from the user
printf("Enter the number: ");
scanf("%d", &n);
printf("%d",n);
// Call the assembly function to find the smallest number
result = inc_by_1 (n);
// Display the result
printf("\nResult = %d\n", result);
return 0;
}