Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- using namespace std;
- void wypisz();
- float srednia(float a,float b);
- void szlaczek();
- int main(int argc, char *argv[])
- {
- szlaczek();
- cout << srednia(3,4) << endl;
- szlaczek();
- system("PAUSE");
- return EXIT_SUCCESS;
- }
- void wypisz()
- {
- cout << "******************\n";
- cout << "Moja pierwsza funkcja\n";
- cout << "******************\n";
- }
- float srednia(float a,float b)
- {
- return (a+b)/2;
- }
- void szlaczek()
- {
- for(int i = 0;i<15;i++)
- cout << "*";
- cout << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement