当前位置:网站首页>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
}
边栏推荐
- Here comes a new chapter in the series of data conversion when exporting with easyexcel!
- Fabric.js IText 上标和下标
- Ls1046nfs mount file system
- Importation de studio visuel
- Global and Chinese market of commercial fish tanks 2022-2028: Research Report on technology, participants, trends, market size and share
- ERP management system development and design existing source code
- Global and Chinese market of cell culture freezers 2022-2028: Research Report on technology, participants, trends, market size and share
- 6.网络-基础
- 操作符详解
- Global and Chinese market of pressure gauges 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]
黑马笔记---Set系列集合
Latest: the list of universities and disciplines for the second round of "double first-class" construction was announced
Fabric.js 激活输入框
kmp思想及模板代码
How matlab marks' a 'in the figure and how matlab marks points and solid points in the figure
Storage of data
paddle: ValueError:quality setting only supported for ‘jpeg‘ compression
Gee: explore the change of water area in the North Canal basin over the past 30 years [year by year]
Résumé de la collection de plug - ins couramment utilisée dans les outils de développement idea
随机推荐
青训营--数据库实操项目
Principle and implementation of parallax effect
线程池概述
Gee: create a new feature and set corresponding attributes
Dark horse notes -- map set system
460. LFU 缓存 双向链表
Pyechats 1.19 generate a web version of Baidu map
数据的储存
RNN recurrent neural network
Gee dataset: chirps pentad high resolution global grid rainfall dataset
小程序跳装到公众号
摆正元素(带过渡动画)
Fabric.js 圆形笔刷
【pyinstaller】_get_sysconfigdata_name() missing 1 required positional argument: ‘check_exists‘
操作符详解
brew install * 失败,解决方法
Gee series: Unit 3 raster remote sensing image band characteristics and rendering visualization
Black Horse Notes - - set Series Collection
Fabric. JS 3 APIs to set canvas width and height
JVM class loading mechanism