C 语言实例 - 判断字母
C 语言教程
· 2019-02-20 17:56:38
用户输入一个字符,判断该字符是否为一个字母。
实例
#include <stdio.h>
int main()
{
char c;
printf("输入一个字符: ");
scanf("%c",&c);
if( (c>='a' && c<='z') || (c>='A' && c<='Z'))
printf("%c 是字母",c);
else
printf("%c 不是字母",c);
return 0;
}
运行结果:
输入一个字符: a a 是字母
点击查看所有 C 语言教程 文章: https://www.codercto.com/courses/l/17.html
Introduction to Linear Optimization
Dimitris Bertsimas、John N. Tsitsiklis / Athena Scientific / 1997-02-01 / USD 89.00
"The true merit of this book, however, lies in its pedagogical qualities which are so impressive..." "Throughout the book, the authors make serious efforts to give geometric and intuitive explanations......一起来看看 《Introduction to Linear Optimization》 这本书的介绍吧!