So here is my current approach. I'm struggling with printing only the first character and the first character after a space in the problem. I feel like I'm pretty close but can't seem to figure out this last part.
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <ctype.h>
int main (void)
{ //Prompt user for string, define variables
int i;
string name = get_string();
//Iterate through each chacter of the string
for (i = 0; i < strlen(name); i++){
if (name[0]){
printf("%c", toupper(name[i]));
}
}
}
Thank you all for your help!