C++
//start
#include "iostream"
using namespace std;
int main()
{
const int n=5;
int a[n];
cout<<"Input a"<<endl;</p>
for(int i=0;i
cin>>a[i];
int ch[n];
int l1=0;
for(int i=0;i
{
int first = a[i]/10;
int last = a[i]%10;
if((pow(first,2)+pow(last,2))%13==0)
{
ch[l1]=a[i];
l1++;
}
}
for(int i=0;i
cout<<ch[i]<<' ';</p>
cout<<endl;</p>
system("PAUSE");
return 0;
}