Skip to content

Instantly share code, notes, and snippets.

Last active Oct 26, 2017
What would you like to do?
#include <cs50.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
int main(int argc, string argv[]) {
if (argc != 2) {
printf("Error, try again");
return 1;
return 0;
// make k into an int
int k = atoi(argv[1]);
// prompt user for plaintext
printf("plaintext: ");
string p = get_string();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment