My Version - New
My Version - New
h>
//input
//process info
//output
//main body
if(encipher == 'e')
{
printf("Enter numbers to encipher by: ");
}
else
{
printf("Enter numbers to decipher by: ");
}
scanf("%d %d %d %d", &num1, &num2, &num3, &num4);
///////////////////////////////////////////////////////////////////////////////
///////////////////// DO NOT EDIT THIS MAIN FUNCTION ///////////////////////////
////////////////////////////////////////////////////////////////////////////////
// This main function scans a message and then calls your determine_ciphering
// procedure, passing in the message.
int main(void) {
// Have a think about how we might implement this with a `struct message`
// once we've covered structs in the Thursday lecture!
char letter1;
char letter2;
char letter3;
char letter4;
// Scan message into the four characters
printf("Message: ");
scanf (
"%c %c %c %c",
&letter1, &letter2, &letter3, &letter4
);
// Call your determine_ciphering function and pass in the message.
determine_ciphering(letter1, letter2, letter3, letter4);
}