Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include <stdio.h>
#include <cs50.h>
int main(void){
// get_string and get_int are included
// within the cs50 header file
// also note the string data type
// is a part of the cs50 header file
string s = get_string("Prompt name: ");
int i = get_int("Prompt age: ");
printf("Name:\t%s\n", s);
printf("Age:\t%d\n", i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.