Skip to content

Instantly share code, notes, and snippets.

@jmichalenko
Created March 18, 2024 23:54
Show Gist options
  • Save jmichalenko/e747b3c054ebeedb55311236a2905c08 to your computer and use it in GitHub Desktop.
Save jmichalenko/e747b3c054ebeedb55311236a2905c08 to your computer and use it in GitHub Desktop.
CS50 Labs starter code
#include <cs50.h>
#include <stdio.h>
#include <string.h>
int main(void)
{
// get a string named plaintext
string plaintext = get_string("plaintext: ");
// output the string
for (int i = 0; i < strlen(plaintext); i++)
{
printf("%c", plaintext[i]);
}
printf("\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment