Created
June 23, 2022 16:43
-
-
Save DeclanGas/bd89d06423cf2099b3e4b56ffff8fc37 to your computer and use it in GitHub Desktop.
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> | |
#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] + 1); | |
} | |
printf("\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment