#include<stdio.h>
#include<stdlib.h>
int sum();     /* function declaration */
main()     /* main function */
{
      int choice;
     	printf("**********WELCOME**********\n\n");
     	printf("Please, select your choice.\n");
     	printf("1.Addition(press 1, for addition)\n2.Exit(press 2,for quit)\n\n");
     	printf("Please, Enter your choice : ");
     	scanf("%d",&choice);
     	if(choice==1)
     	sum();     /* function call */
     	if(choice==2)
     	exit(0);
}       /* end of main() function */
     /* function structure */
int sum(){
     	int num1,num2,result;
     	printf("\nYou have selected addition option.\nPlease, Enter the 1st number : ");
     	scanf("%d",&num1);
     	printf("\nPlease, Enter the second number : ");
     	scanf("%d",&num2);
     	result=num1+num2;
     	printf("\nThe result is : %d + %d = %d",num1,num2,result);
}
