Facebook
From Obese Cheetah, 9 Years ago, written in C++.
Embed
Download Paste or View Raw
Hits: 959
  1. #include<iostream>
  2. using namespace std;
  3. int tab[20];
  4. int sprawdz(int a);
  5. int main()
  6. {
  7.     int parzyste=0;
  8.     for (int i=0;i<20;i++)
  9.     {
  10.         cin>>tab[i];
  11.         parzyste+=sprawdz(tab[i]);
  12.     }
  13.     cout << "Wprowdzono "<< parzyste << " liczb parzystych"<<endl;
  14.     system ("pause");
  15. }
  16.  
  17. int sprawdz(int a)
  18. {
  19.     if (a%2==0)return 1;
  20. }
  21.  

Replies to pd rss

Title Name Language When
Re: pd Obese Tamarin cpp 9 Years ago.