0
Can someone fix the program below please?
6 Respuestas
+ 2
~ swim ~ It worked! Thanks man! But why did you use getchar(); before fgets();?
+ 1
~ swim ~ I changed the program my self, but now it is not showing any output, And yeah the integer input is for the key for decrypt or encrypt the text.
+ 1
~ swim ~ Hi, The code is now functional, but I can only get a word from the user, I want to get a sentence from the user
I used scanf() for the word input,
I tried fgets(), gets() and scanf("%[^\n]*c, snts) but I can't take a sentence from user,
Can you help with that?
+ 1
~ swim ~ I am taking two strings and an integer from the user,
1st string for the decision Decrypt or Encrypt
2nd string for the sentence(currently word) and
The integer for the key of cipher
+ 1
decrypt
Manthan
1
Output: Nbouibo
+ 1
~ swim ~ Again, thank you very much for the help! I understood the reason.