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
29 lines
831 B
#include "requestLoan.h"
|
|
const int a = 1;
|
|
int option1 = 1000;
|
|
int option2 = 2500;
|
|
int option3 = 5000;
|
|
char currency[] = "Euro";
|
|
int allow() //int allow() is helpful for indirectly testing void requestLoan()
|
|
{
|
|
if (a == 1)
|
|
{
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|
|
void requestLoan()
|
|
{
|
|
if (allow() == 1) //only if int allow() returns 1, void requestLoan() will display the desired output
|
|
{
|
|
printf(" Please select a loan Package: \n");
|
|
printf(" \n");
|
|
printf(" \n");
|
|
printf(" %d %s\n", option1, currency);
|
|
printf(" %d %s\n", option2, currency);
|
|
printf(" %d %s\n", option3, currency);
|
|
}
|
|
}
|
|
|
|
|