Skip to content

Instantly share code, notes, and snippets.

Created Oct 26, 2017
What would you like to do?
#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