Skip to content

Instantly share code, notes, and snippets.

@deeunix
Last active June 14, 2021 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deeunix/7055917aa458cc10c59775de4879909b to your computer and use it in GitHub Desktop.
Save deeunix/7055917aa458cc10c59775de4879909b to your computer and use it in GitHub Desktop.
my cs50 hello.c solution
#include <cs50.h>
#include <stdio.h>
int main(void)
{
string name = get_string("What is your name: "); //declare a string with 'name' variable
printf("hello, %s\n", name); //then print the name with %s
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment