I am not sure how to store the return char function so I can return it to be used in the main function,
char process_3 (int step_2)
{
if (step_2 % 2 == 0)
{
printf ("A");
}
else if (step_2 % 3 == 0)
{
printf ("F");
}
if (step_2 % 5 == 0)
{
printf ("K");
}
else if (step_2 % 7 == 0)
{
printf ("P");
}
if (step_2 % 11 == 0 || step_2 % 13 == 0)
{
printf ("T");
}
else
{
printf ("Z");
}
return process_3;
}
Try this:
You can assign chars to a variable using single quotes and return them from functions as well.