Program to find the length of a string in C

Program

#include <stdio.h>
#include<string.h>
int main()
{
    char str[20];
    int len;
    printf("************************************************************");
    printf("\n************************************************************");
    printf("\n**     WAP to enter a string and find its length in C     **");
    printf("\n**              Created by Sheetal Garg                   **");
    printf("\n**              Assistant Professor                       **");
    printf("\n**              Phone No:9467863365                       **");
    printf("\n************************************************************");
    printf("\n************************************************************");
    printf("\nenter the string\n");
    gets(str);
    len = strlen(str);
    printf("\nLength of the string is %d", len);
}

Output 1

************************************************************
************************************************************
**     WAP to enter a string and find its length in C     **
**              Created by Sheetal Garg                   **
**              Assistant Professor                       **
**              Phone No:9467863365                       **
************************************************************
************************************************************
enter the string
Sheetal Garg

Length of the string is 12
error: You can only copy the programs code and output from this website. You are not allowed to copy anything else.