当前位置:网站首页>C#输入一个字母,判断其大小写
C#输入一个字母,判断其大小写
2022-07-23 05:47:00 【业余幻想家】
C#输入一个字母,判断其大小写
using System;
namespace character
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入一个字母:");
char s = char.Parse(Console.ReadLine());
if(s >= 'A' && s<= 'Z')
{
Console.WriteLine(s + "是一个大写字母");
}else if(s >= 'a' && s <= 'z')
{
Console.WriteLine(s + "是一个小写字母");
}else
{
Console.WriteLine(s +"不是一个字母");
}
Console.ReadKey();
}
}
}
边栏推荐
- How far is the first kind of mistake from us
- 直白理解一文搞定http协议缓存
- C custom queue set
- 学习日记(路由与交换技术)——浮动静态路由和缺省路由
- OSPF的链路扩展配置
- Unity3d:ugui source code eventsystem input system FAQ
- Unity3d:assetbundle simulation loading, synchronous loading, asynchronous loading, dependent package loading, automatic labeling, AB browser, incremental packaging
- Hcip--- BGP related configuration
- 为什么要搭建本地yum仓库?
- Gameframework:resource loading, resource loading, dependency loading, task pool, object pool, reference count
猜你喜欢

Learning diary - (routing and switching technology) OSPF Protocol

DHCP原理与配置

HCIP---OSPF细节讲解

Unity3d:assetbundle simulation loading, synchronous loading, asynchronous loading, dependent package loading, automatic labeling, AB browser, incremental packaging

C #: TOPK: take the largest 100 before 10000 numbers, and sort the heap

学习日记——(路由与交换技术)单臂路由

jenkins用到的插件

Learning diary - (routing and switching technology) network address translation NAT Technology

Unity3d+moba+ skill indicator (I)

Hcip--- BGP related configuration (Federal chapter)
随机推荐
0 dynamic programming leetcodde313. super ugly number
HCIP---BGP ---边界网关协议
post表单提交数据限制
围棋能力概念与软件开发能力概念的对应
读《凤凰架构》- RPC的历史与知识
OSPF comprehensive experiment
学习日记——(路由与交换技术)单臂路由
HCIP---MGRE环境下的OSPF综合实验
Gameframework:resource loading, resource loading, dependency loading, task pool, object pool, reference count
DHCP principle and configuration
InheritableThreadLocal与阿里的TransmittableThreadLocal设计思路解析
Analysis of Internet Protocol (I)
LSM-tree(Log Structured-Merge Tree)的理解
PPP 配置实例学习记录
Hcip --- OSPF details
Routing and interface technology -- Summary of direct network
剖析Redis服务器
C # custom stack
超好用的抓包工具tcpdump
HCIP---OSPF细节讲解