#include <stdio.h>
#include <stdlib.h>
#ifdef RUN_ON_HW
#define Serial1 Serial
#
extern "C"{
int get_smallest(void);
}
void setup() {
// put your setup code here, to run once:
Serial1.begin(115200);
}
int main()
{
int x,y,smallest;
printf("Enter the first number:");
scanf("%d",&x);
printf("%d",x);
printf("Enter the second number:"):
scanf("%d",&y);
printf("%d",y);
smallest = get_smallest(x,y);
printf("\nsmallest number is %d",smallest);
}
void loop() {
}