Initial commit with cleaned history
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// Determines the length of a string using a function
|
||||
|
||||
#include <cs50.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
// Prompt for user's name
|
||||
string name = get_string("Name: ");
|
||||
int length = strlen(name);
|
||||
printf("%i\n", length);
|
||||
}
|
||||
Reference in New Issue
Block a user