技术栈

c 语言将大写字符转换成为小写字符

赔罪2024-10-14 22:05

直接上代码

Method1:

复制代码
#include<stdio.h>
int main() {
	char input,output;
	scanf("%c",&input);
	output = input + 32;
	printf("%c\n",output);
	return 0;
}

Method2:

复制代码
#include<stdio.h>
int main() {
	char input,output;
	scanf("%c",&input);
	output = input + ('a' -'A');
	printf("%c\n",output);
	return 0;
}
上一篇:lvm-lv删除告警 Logical volume openeuler/home contains a filesystem in use.
下一篇:hznu.dodo C++ 实验A 文件
相关推荐
52Hz118
5 分钟前
力扣230.二叉搜索树中第k小的元素、199.二叉树的右视图、114.二叉树展开为链表
python·算法·leetcode
苦藤新鸡
8 分钟前
56.组合总数
数据结构·算法·leetcode
LiLiYuan.
21 分钟前
【Cursor 中找不到LeetCode 插件解决办法】
算法·leetcode·职场和发展
Charlie_lll
22 分钟前
力扣解题-[3379]转换数组
数据结构·后端·算法·leetcode
captain376
32 分钟前
Java队列(Queue)
算法·链表
TracyCoder123
37 分钟前
LeetCode Hot100(23/100)——142. 环形链表 II
算法·leetcode·链表
jigsaw_zyx
37 分钟前
提示词工程
人工智能·算法
A尘埃
38 分钟前
银行个人贷款违约风险预测(逻辑回归)
算法·机器学习·逻辑回归
Volunteer Technology
39 分钟前
Sentinel的限流算法
java·python·算法
热门推荐
01GitHub 镜像站点02Vue-skills的中文文档03Claude Code + GLM4.7 避坑指南:解决 Unable to connect to Anthropic services04Claude Code Skills 实用使用手册05一文了解国产算子编程语言 TileLang,TileLang 对国产开源生态的影响与启示06UV安装并设置国内源07让 Trae IDE 智能体 “读懂”文档 Excel+PDF+DOCX :mcp-documents-reader 工具使用指南08Linux下V2Ray安装配置指南09OpenClaw Chrome扩展使用教程 - 浏览器中继控制10AI 规范驱动开发“三剑客”深度对比:Spec-Kit、Kiro 与 OpenSpec 实战指南