当前位置:网站首页>Zzuli:1064 encrypted characters
Zzuli:1064 encrypted characters
2022-07-02 05:29:00 【Don't explode】
Title Description
Enter a batch of characters from the keyboard , With @ end , Encrypt and output as required .
Input
Enter a batch of characters from the keyboard , Occupy a line , With @ end .
Output
Output takes up one line
Encryption rules :
1) All letters are converted to lowercase .
2) If it's a letter 'a' To 'y', Then it is converted to the next letter .
3) if 'z', It's translated into 'a'.
4) Other characters , remain unchanged .
The sample input Copy
[email protected]
Sample output Copy
lzi520
#include <stdio.h>
#include <math.h>
int main()
{
char ch;// Defining character variables char
while(scanf("%c",&ch),ch!='@')// When you type char It's not equal to @ when , Continue to operate
{
if(ch>='A'&&'Z'>=ch) ch+=32;// This part is to convert uppercase to lowercase
if(ch>='a'&&'y'>=ch) ch+=1;// This if And the following else if It's parallel
else if(ch=='z') ch='a';// When the character is z, Turn it into a
printf("%c",ch);// Output encrypted characters
}
return 0;// Program exit normally
}边栏推荐
- Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]
- LeetCode 241. Design priorities for operational expressions (divide and conquer / mnemonic recursion / dynamic programming)
- Reflection of the soul of the frame (important knowledge)
- ERP management system development and design existing source code
- Gee series: unit 6 building various remote sensing indexes in Google Earth engine
- Fabric. JS background is not affected by viewport transformation
- Fabric.js 基础笔刷
- Gee: use of common mask functions in remote sensing image processing [updatemask]
- Generate QR code
- Fabric.js 将本地图像上传到画布背景
猜你喜欢

黑馬筆記---Set系列集合
![Gee series: unit 10 creating a graphical user interface using Google Earth engine [GUI development]](/img/78/a17034d4b77d5c0dbe741f84a8ecd7.jpg)
Gee series: unit 10 creating a graphical user interface using Google Earth engine [GUI development]

6. Network - Foundation

Gee: create a new feature and set corresponding attributes

Fabric. JS iText set italics manually

Résumé de la collection de plug - ins couramment utilisée dans les outils de développement idea

Centos8 installation mysql8.0.22 tutorial
![Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]](/img/ff/59956c2323567cc614458a2bccb642.jpg)
Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]

2022-2-14 learning xiangniuke project - section 23, section 5, development login and exit functions

Gee series: Unit 4 data import and export in Google Earth engine
随机推荐
操作符详解
Storage of data
Briefly introduce chown command
RNN recurrent neural network
ERP management system development and design existing source code
el form 表单validate成功后没有执行逻辑
Financial portal related information
青训营--数据库实操项目
Gee series: unit 7 remote sensing image classification using GEE [random forest classification]
Fabric.js 激活输入框
Gee: find the spatial distribution and corresponding time of the "greenest" in the Yellow River Basin in 2020 [pixel by pixel analysis]
小程序跳装到公众号
Gee series: Unit 5 remote sensing image preprocessing [GEE grid preprocessing]
Fabric. JS free draw rectangle
7. Eleven state sets of TCP
Gee series: Unit 3 raster remote sensing image band characteristics and rendering visualization
来啦~ 使用 EasyExcel 导出时进行数据转换系列新篇章!
Php/js cookie sharing across domains
视差特效的原理和实现方法
Global and Chinese market of impact roll 2022-2028: Research Report on technology, participants, trends, market size and share