You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
831 B

  1. #include "requestLoan.h"
  2. const int a = 1;
  3. int option1 = 1000;
  4. int option2 = 2500;
  5. int option3 = 5000;
  6. char currency[] = "Euro";
  7. int allow() //int allow() is helpful for indirectly testing void requestLoan()
  8. {
  9. if (a == 1)
  10. {
  11. return 1;
  12. }
  13. }
  14. void requestLoan()
  15. {
  16. if (allow() == 1) //only if int allow() returns 1, void requestLoan() will display the desired output
  17. {
  18. printf(" Please select a loan Package: \n");
  19. printf(" \n");
  20. printf(" \n");
  21. printf(" %d %s\n", option1, currency);
  22. printf(" %d %s\n", option2, currency);
  23. printf(" %d %s\n", option3, currency);
  24. }
  25. }