functions.cpp 256 B

12345678910111213141516
  1. #include "functions.h"
  2. void test_func()
  3. {
  4. std::cout << "Hello from function but changed!" << std::endl;
  5. }
  6. bool isPrimeNum(int num)
  7. {
  8. for (int i = 2; i < num; i++)
  9. {
  10. if (num % i == 0)
  11. return false;
  12. }
  13. return true;
  14. }