当前位置:网站首页>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
}边栏推荐
- Fabric. JS right click menu
- How to make an RPM file
- Gee series: unit 6 building various remote sensing indexes in Google Earth engine
- Dark horse notes -- map set system
- Fabric.js 渐变
- Briefly introduce chown command
- Gee series: unit 7 remote sensing image classification using GEE [random forest classification]
- Usage record of vector
- Global and Chinese markets of semiconductor laser therapeutics 2022-2028: Research Report on technology, participants, trends, market size and share
- Fabric.js 居中元素
猜你喜欢

创新永不止步——nVisual网络可视化平台针对Excel导入的创新历程

Fabric. JS iText superscript and subscript

Centos8 installation mysql8.0.22 tutorial

No logic is executed after the El form is validated successfully

Gee data set: export the distribution and installed capacity of hydropower stations in the country to CSV table

Gee dataset: chirps pentad high resolution global grid rainfall dataset
![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]

Using QA band and bit mask in Google Earth engine

Gee series: unit 6 building various remote sensing indexes in Google Earth engine

MySQL foundation --- query (learn MySQL foundation in 1 day)
随机推荐
6. Network - Foundation
Gee series: unit 10 creating a graphical user interface using Google Earth engine [GUI development]
paddle: ValueError:quality setting only supported for ‘jpeg‘ compression
Two implementation methods of delay queue
Fabric. JS right click menu
7.1模擬賽總結
Gee: use of common mask functions in remote sensing image processing [updatemask]
【技术随记-08】
Visual Studio导入
Résumé de la collection de plug - ins couramment utilisée dans les outils de développement idea
How to make an RPM file
7.TCP的十一种状态集
Database batch insert data
Gee series: Unit 3 raster remote sensing image band characteristics and rendering visualization
数据库批量插入数据
Detailed explanation of Pointer use
Leetcode 18 problem [sum of four numbers] recursive solution
Paddlepaddle project source code
Gee: create a new feature and set corresponding attributes
Fabric. JS gradient