数组结果运作不正确
#include "stdafx.h"#include "stdio.h"
int _tmain(int argc, _TCHAR* argv[])
{
int i,A[10],S,s1,s2;
s1=0;
s2=0;
for(i=0;i<10;i++){
scanf("%d",&A[i]);
if(A[i]%2==0) s1=s1+A[i];
if(A[i]%3==0) s2=s2+A[i];
}
S=s1-s2;
printf("%d",&S);
return 0;
}