Created
October 26, 2017 01:47
-
-
Save ajess33/a79795847bc42eebe4463f504f427b9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cs50.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
int main(void) | |
{ | |
// prompt user for name | |
printf("What is your name? "); | |
string s = get_string(); | |
if (s != NULL) | |
{ | |
for (int i = 0; i < strlen[s]; i++) | |
{ | |
printf("%c", s[0]) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment