From 739685eee5a7ff0c1fd7530bbd2b06a78900485b Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 8 May 2023 14:14:33 -0700 Subject: feat(homework_4): step seperators --- cst120/week_4/homework_4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cst120/week_4/homework_4.c b/cst120/week_4/homework_4.c index 03028bf..d2e26c4 100644 --- a/cst120/week_4/homework_4.c +++ b/cst120/week_4/homework_4.c @@ -49,14 +49,15 @@ int main(void) { rail_fence_encrypt(caesar_cipher_encrypted_message); /* Output final double-cipher-ed result */ - printf("Caesar cipher: %s\n", caesar_cipher_encrypted_message); + printf("\nCaesar cipher: %s\n", caesar_cipher_encrypted_message); printf("Rail Fence cipher: %s\n", rail_fence_encrypted_message); printf("Rail Fence + Caesar cipher: %s\n", caesar_rail_fence_encrypted_message); /* Prompt user to repeat */ - printf("Would you like to go again? (y/n) "); + printf("\nWould you like to go again? (y/n) "); scanf(" %c", &user_go_again); + printf("\n"); /* Free the encrypted messages */ free((void *)caesar_cipher_encrypted_message); -- cgit v1.2.3