#include<stdio.h>
#include<stdlib.h>
extern "C" {
int get_smallest(int x, int y);
}
void setup() {
// put your setup code here, to run once:
Serial1.begin(9600);
}
int main()
{
int x, y, smallest;
printf("Enter the first number:");
scanf("%d",&x);
printf("%d",x);
printf("\nEnter the second number:");
scanf("%d",&y);
printf("%d",y);
smallest = get_smallest(x, y);
printf("\nThe smaller number is: %d", smallest);
return 0;
}