当前位置:网站首页>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
}边栏推荐
- Reflection of the soul of the frame (important knowledge)
- Gee: explore the change of water area in the North Canal basin over the past 30 years [year by year]
- Appnuim environment configuration and basic knowledge
- php/js cookie共享跨域的问题
- Gee: use of common mask functions in remote sensing image processing [updatemask]
- LeetCode 1175. Prime number arrangement (prime number judgment + Combinatorial Mathematics)
- Gee series: Unit 5 remote sensing image preprocessing [GEE grid preprocessing]
- Collectors.groupingBy 排序
- Thread pool batch processing data
- Fabric. JS upload local image to canvas background
猜你喜欢
![Gee: analyze the change of spatial centroid of remote sensing image [centroid acquisition analysis]](/img/25/a726643b96b6f7dbfee3782c4905d9.jpg)
Gee: analyze the change of spatial centroid of remote sensing image [centroid acquisition analysis]

Collectors.groupingBy 排序

黑马笔记---Set系列集合

Record sentry's path of stepping on the pit

LS1046nfs挂载文件系统

Fabric.js 将本地图像上传到画布背景

Gee: remote sensing image composite and mosaic

Using QA band and bit mask in Google Earth engine

Basic use of form

Fabric.js 居中元素
随机推荐
Fabric. JS 3 APIs to set canvas width and height
【pyinstaller】_ get_ sysconfigdata_ name() missing 1 required positional argument: ‘check_ exists‘
7.1 simulation summary
Global and Chinese market of travel data recorder (VDR) 2022-2028: Research Report on technology, participants, trends, market size and share
黑马笔记---Map集合体系
Gee: find the spatial distribution and corresponding time of the "greenest" in the Yellow River Basin in 2020 [pixel by pixel analysis]
Disable access to external entities in XML parsing
Fabric.js 精简JSON
Mysql基础---查询(1天学会mysql基础)
ERP management system development and design existing source code
Nodejs (02) - built in module
XSS basic content learning (continuous update)
Thread pool overview
Dark horse notes -- map set system
Fabric. JS background is not affected by viewport transformation
Usage record of vector
Basic use of form
Php/js cookie sharing across domains
Global and Chinese markets for marine selective catalytic reduction systems 2022-2028: Research Report on technology, participants, trends, market size and share
Gee series: unit 7 remote sensing image classification using GEE [random forest classification]