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