Skip to content

Instantly share code, notes, and snippets.

#include <cs50.h>
#include <stdio.h>
int main(void)
{
// declare a string named "name" and get input with get_string
string name = get_string("Enter Name: ");
// declare an int named "age" and get user input with get_int
int age = get_int("Enter Age: ");
#include <cs50.h>
#include <stdio.h>
int main(void)
{
int age = get_int("Enter Your Age: ");
// Let's assume my age is 17
printf("Right now I'm %i years old.\n", age);
#include <stdio.h>
int main(void)
{
printf("This is CS50AP!\n");
}