Last active
June 14, 2021 23:49
-
-
Save deeunix/7055917aa458cc10c59775de4879909b to your computer and use it in GitHub Desktop.
my cs50 hello.c solution
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> | |
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