# include <iostream.h>
# include <conio.h>
usingnamespace std;
constint u=3,t=4;
int main ()
{
int a[u][t],n=0,i,f,s;
cout<<"enter array\n";
for (i=0;i<u;i++)
{
for (f=0;f<t;f++)
cin>>a[i][f];}
cout<<endl;
for (f=0;f<t;f++)
{
n=0;
for (i=0;i<u;i++)
{
if (a[i][f]==0)
{
n++;
break;
}
if (n==t)
{
s=0;
for (i=0;i<u;i++)
s=s+a[i][f];
cout<<"s= "<<s<<endl;
}
}
}
getch();
return 0;
}