当前位置:网站首页>Exercise 7-7 string replacement (15 points)
Exercise 7-7 string replacement (15 points)
2022-06-13 09:25:00 【Hezeze】
#include <stdio.h>
int main () {
int i;
char a[81];
gets (a);
for (i=0;a[i]!='\0';i++) {
if (a[i]>='A'&&a[i]<='Z') {
a[i]=a[i]+('Z'+'A'-2*a[i]);
}
}
puts (a);
return 0;
}
边栏推荐
- Alibaba senior experts analyze the standard design of protocol
- LeetCode 322. 零钱兑换
- 时间戳转localDate
- 20211108 det(AB)=det(A)det(B)
- How Simulink adds modules to the library browser
- CAS NO lock
- Can the operation of the new BMW I3 meet the expectations of the famous products of the 3 series?
- LeetCode 5270. Minimum path cost in grid (dynamic programming)
- [most comprehensive and detailed explanation] detailed explanation of knapsack problem
- C language: file operation
猜你喜欢
(state compression dp+ binary) acwing 91 Shortest Hamilton path
Storage mode of drawings
(dfs) acwing 842. Arrange numbers
Longadder of the source code of JUC atomic accumulator
IP address introduction
C language: minesweeping
Exporting MySQL data table documents using Navicat
Can the operation of the new BMW I3 meet the expectations of the famous products of the 3 series?
C language: deep understanding of character functions and string functions (1)
(Dijkstra + shortest circuit + by point n^2) acwing 849 Dijkstra finding the shortest path I
随机推荐
Delete soft link
LeetCode 5270. 网格中的最小路径代价(动态规划)
静态变量与一个类相关联,只要该类在内存中(只要您的应用程序终止,该变量就不存在)就可以使用。(堆本体,栈引用)
20211104 why is the trace of a matrix equal to the sum of eigenvalues, and why is the determinant of a matrix equal to the product of eigenvalues
批量讀取文件夾下的全部語音文件
【最全面详细解释】背包问题详解
(Dijkstra + shortest circuit + by point n^2) acwing 849 Dijkstra finding the shortest path I
(dijkstra+ shortest path + edge traversal 0 (m)) acwing 850 Dijkstra finding the shortest path II
(dfs+ tree DP) acwing 846 Center of gravity of tree
20211108 det(AB)=det(A)det(B)
CAS NO lock
C#入门系列(十三) -- 初识结构体
20211020 academician all drive system
计算两个时间相差的天数(支持跨月、跨年)
全新BMW i3的操控,能符合对3系之名产品的期待吗?
Overview of common layers of image recognition neural network (under update)
C language: deep understanding of character functions and string functions (2)
谨记! 写代码别太自信! 一定要写点关键日志info输出,不然问题都定位不到。
C language: recursive function to realize Hanoi Tower
LeetCode 剑指 Offer 30. 包含min函数的栈