#include<stdio.h>
#include<stdlib.h>
extern "C"
{
int add_three(int x, int y,int z);
}
void setup()
{
Serial.begin(9600);
}
int main()
{
int x,y,z,add;
printf("Enter 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);
add = add_three(x,y,z);
printf("\nThe addition is %d\n",add);
return 0;
}