5 喜歡 0 不喜歡
1.2k 瀏覽

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 /* */

[正常] Coding (C) - 最新提問 分類:Questions Bank | 用戶: (5.9k 分)
ID: 28126 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 1.2k 瀏覽

1個回答

0 喜歡 0 不喜歡
內容已隱藏
#include ** * **** **
int main(int argc, char *argv[]) {


* * * ** char a;
* *** * ****** * * b;
* ** ** * * ** ** * c;
* ** ** * *** ** *** * d;
* * ** * * ** * e;
* ** * * *** * *** * * ** ** * **
** ** *** ** * * * ** ********* *** ** *** * * ** * * * * **
* * ** ****
* * * ** * * ***** the message how??
* ***** ****
* * * * * * ***** * * * * * * * *** *** *
*** ** * **
* ** ******* return 0;
}
最新回答 用戶: (221 分)
0 0
Case 0: Correct output
Case 1: Wrong output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.130.156
©2016-2025

沒有找到相關問題

12,783 問題
183,442 回答
172,219 留言
4,824 用戶