#include<stdio.h>
#include<stdlib.h>
extern "C"
{
int get_smallest(int x, int y);
}
void setup()
{
Serial.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\n",smallest);
return 0;
}