5 like 0 dislike

You have received an encrypted message from Julius Caesar-- the message is ebiil.  You are asked to decipher the message in order to understand what Caesar trying to say to you.

Hint

Luckily, Caesar has given you a hint, he says: 'I, myself, encoded the message by shifting every word backwards by 3.' 

Solution

Write a program that receives 5 characters 'ebiil'. Then decode those characters into 5 new characters.

Example

#include <stdio.h>

int main(int argc, char *argv[]) {


	char a;
    	char b;
	 	
	scanf("%c%c", &a, &b);
	
	//decode the message how??
	
	printf("%c%c", a,b);
	
	return 0;
}

Input

ebiil

 

 

 

 

 

 

 

 

 

 

Output

hello

** REMEMBER ** 
This is an online-compiler, don't put anything except the codes. If you want to make a comment, please use // or /* */

[Normal] Coding (C) - asked in Questions Bank by (5.9k points)
Available when: Unlimited - Due to: Unlimited
| 18 views

1 Answer

0 like 0 dislike
Hidden content!
#include ** ** * * *
int main(int argc, char *argv[]) {


* * * * char a;
* ** * ****** ** * * b;
*** * ** ** * * ** c;
** * *** * ** * * ** d;
* *** * * * ** ******** e;
*** * *** ** *** ** ** ** ** * **
* * **** * * ** ** ** ** ** * * * * * ** * ** * ** **** **
**** * ** **
**** * **** * **** the message how??
* * * * * * **
**** * * * * * * * ** **** * * * *
*** * *
* * ** ** return 0;
}
answered by (221 points)
0 0
Case 0: Correct output
Case 1: Wrong output
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.69.10
©2016-2019

Related questions

4 like 0 dislike
0 answers
[Normal] Coding (C) - asked Nov 3, 2017 in Questions Bank by nat236919 (5.9k points)
Available when: Unlimited - Due to: Unlimited
| 21 views
4 like 0 dislike
1 answer
[Normal] Coding (C) - asked Nov 3, 2017 in Questions Bank by nat236919 (5.9k points)
Available when: Unlimited - Due to: Unlimited
| 9 views
8,033 questions
60,929 answers
33,033 comments
1,100 users