Advertisement
DominikPasiut

Untitled

Jan 26th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.90 KB | None | 0 0
  1. #ifndef MY_HEADER_H
  2. #define MY_HEADER_H
  3.  
  4. #endif // MY_HEADER_H
  5.  
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #include <math.h>
  9.  
  10. /*Deklaracje zmiennych*/
  11.  
  12. char wyborProgramu;     //do switcha
  13.  
  14.  
  15. int iloscLiczb;         //  Ile liczb użytkownik chce dodać
  16. double *arrayOfNumbers; //  Tablica liczb
  17. double result;          //  Wynik
  18. double numberIndex;     //  Podstawa
  19. int exponent;           //  Wykładnik
  20.  
  21.  
  22.  
  23. /*DEKLARACJE FUNKCJI*/
  24.  
  25. /*Wczytywanie liczb*/
  26. void enterNumbers(double* array, int size);
  27.  
  28. /*Wypisywanie wyniku*/
  29. void writingOut(double* array, int size, char character);
  30.  
  31. /*Dodawanie*/
  32. double adding (double* array, int size);
  33.  
  34. /*Odejmowanie*/
  35. double subtraction(double* array, int size);
  36.  
  37. /*Mnożenie*/
  38. double multiplication(double* array, int size);
  39.  
  40. /*Dzielenie*/
  41. double division(double* array, int size);
  42.  
  43. /*Potegowanie*/
  44. double exponentiation(double INDEX, int EXPONENT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement