--- In [email protected], ºéº£À¥ <[EMAIL PROTECTED]> wrote:
>
> #include<stdio.h>
> int main()
> {
> int a[]={1,2,3};
> int b[]={4,5,6,7};
> sum=a[1]+b[1];
> printf("%d+%d=%d\n",a[1],b[1],sum);
> return 0;
> }
>
> I want to get the result "1+4=5".How to correct the programming?
> Waiting for your reply
> Thank you very much!
____________________________________________________________
Try this one
#include<stdio.h>
int main()
{
int a[]={1,2,3};
int b[]={4,5,6,7};
int sum;
sum =a[1]+b[1];
printf("%d+%d=%d\n",a[1],b[1],sum);
return 0;
}
Regards
Prathik.K.Shetty