#include<stdio.h>
void main()
{int a[100];int i;int getchar;int sum;
for(i=0;i<=100;i++)
while
{((a[i]=getchar())!=EOF)}
i++;
printf("your no is =%d",&a[i]);
i=0;
sum=0;
while(i<=100)
{sum=sum+((a[i])^3);
}
i++;
if(sum==a[100])
printf("number is armstrong");
else
printf("number is normal");
not working,can someone give me an alternative usiing arrays,i got the for loop,want to execute using arrays!