Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. void wypisz();
  7. float srednia(float a,float b);
  8.  
  9. void szlaczek();
  10.  
  11. int main(int argc, char *argv[])
  12. {
  13.  
  14. szlaczek();
  15. cout << srednia(3,4) << endl;
  16. szlaczek();
  17.  
  18. system("PAUSE");
  19. return EXIT_SUCCESS;
  20. }
  21.  
  22. void wypisz()
  23. {
  24. cout << "******************\n";
  25. cout << "Moja pierwsza funkcja\n";
  26. cout << "******************\n";
  27. }
  28. float srednia(float a,float b)
  29. {
  30. return (a+b)/2;
  31. }
  32. void szlaczek()
  33. {
  34. for(int i = 0;i<15;i++)
  35. cout << "*";
  36.  
  37. cout << endl;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement