count the length of a sentence ( string strlen function)
#include<stdio.h>
#include<string.h>
int main()
{
char a[50];
scanf("%s",a);
int l=strlen(a);
printf("Length = %d\n",l);
return 0;
}
#include<stdio.h>
#include<string.h>
int main()
{
char a[50];
scanf("%s",a);
int l=strlen(a);
printf("Length = %d\n",l);
return 0;
}
<?php // Start the session session_start(); ?> <!DOCTYPE html> <html> <head> <link rel=&q...
No comments:
Post a Comment