#include <iostream>
using namespace std;
// GRUPA C ZADANIA SPECJALNIE DLA ANGELIKI EM OD BARTŁOMIEJA EL
//ZAD 2
int const nmax=10;
void pobierztablice(double tab[][nmax], int &k, int&w);
void wsywietl(double tab[][nmax], int &k, int&w);
void ujemnekolumnami(double tab[][nmax], int&k, int&w, double ile[]);
int main()
{
double tab[nmax][nmax];
int k,w;
double ile[nmax];
pobierztablice(tab,k,w);
wsywietl(tab,k,w);
ujemnekolumnami(tab,k,w,ile);
return 0;
}
void pobierztablice(double tab[][nmax], int &k, int&w)
{
cout<<"Podaj wiersze";
cin>>w;
cout<<"kolyumny";
cin>>k;
for(int i=0; i<w; i++)
{
for(int j=0; j<k; j++)
{
cout<<"Podaj tab["<<i<<"]["<<j<<"]";
cin>>tab[i][j];
}
}
}
void wsywietl(double tab[][nmax], int &k, int&w)
{
for(int i=0; i<w; i++)
{
for(int j=0; j<k;j++)
{
cout<<tab[i][j]<<" ";
}
cout<<endl;
}
}
void ujemnekolumnami(double tab[][nmax], int&k, int&w, double ile[])
{
for(int i=0; i<k; i++)
{
ile[i]=0;
for(int j=0; j<w; j++)
{
if(tab[j][i]<0)
ile[i]++;
}
cout<<"W kolumnie "<<i<<" jest "<<ile[i]<<" liczb ujemnych"<<endl;
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}