#include <stdio.h>
int main() {
int i,j,array[10]={ 17,23,34,54,12,56,31,56,56,12};
printf("enter two numbers \n");
scanf("%d %d",&i ,&j);
int sum = array[i] + array [j];
int difference = array[i] - array[j];
printf("the sum of two elements is :%d \n",sum);
printf("the difference of the two elements is :%d\n", difference);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: