The problem is that when you enter a name such as elvis (which has 5 letters), it will print this:
Please enter your name.
elvis
Your name is elvis
 and it is 6 letters long.
Press any key to continue . . .
the problem is that it makes another unnecessary line thats because after the elvis I pressed enter.
Sorry for being a new user , im new for these rules , please correct me and educate me , thanks for your time.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define STR_LEN 7
int main(void)
{
    char name[10] = {0};
    printf("Please enter your name.\n");
    fgets(name ,10, stdin);
    printf("Your name is %s and it is %d letters long.\n" , name , strlen(name));
    system("PAUSE");
    return 0;
}
 
     
     
    