Basically what the title says. I have this program:
#include <cs50.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int letter_countf(string Text1);
int main(void)
{
string TextIn = get_string("Text: ");
int letter_count = letter_countf(TextIn);
printf("%i\n", letter_count);
}
int letter_countf(string Text)
{
int Is_letter = 0; int Is_space = 0;
for(int i = 0; i < strlen(Text); i++)
{
if (isspace(Text[i]) != 0)
{
Is_space++;
}
else
{
Is_letter++;
}
}
}
And I want the output of the function letter_countf, to be both the Is_space and Is_letter variables. How do I store both values?