当前位置:网站首页>Statistical capital consonants
Statistical capital consonants
2022-07-03 14:15:00 【Study hard 867】
English consonants are divided by A、E、I、O、U Letters other than . This question requires the preparation of procedures , Statistics in the given string Capitalization The number of consonants .
Input format :
The input gives no more than 80 Characters 、 A string that ends with a carriage return .
Output format :
The output gives the number of uppercase consonants in the string in one line .
sample input :
HELLO World!
sample output :
4Code :
#include <stdio.h>
int main(){
char a[80];
int i,num=0;
for(i=0;(a[i]=getchar())!='\n';i++){
if(a[i]>'A'&&a[i]<'E')num++;
else if(a[i]>'E'&&a[i]<'I')num++;
else if(a[i]>'I'&&a[i]<'O')num++;
else if(a[i]>'O'&&a[i]<'U')num++;
else if(a[i]>'U'&&a[i]<='Z')num++;
}
printf("%d",num);
}边栏推荐
- Exercise 6-1 classify and count the number of characters
- Metal organic framework material zif-8 containing curcumin( [email protected] Nanoparticles) | nano metal organic framework carry
- Similarities and differences between Allegro, OrCAD, net alias, port, off page connector and how to select them
- GRPC的四种数据流以及案例
- 全局事件总线
- Toast UI editor (editor allows you to edit your markup document using text or WYSIWYG, with syntax highlighting, scrolling synchronization, real-time preview and chart functions.)
- Folic acid modified metal organic framework (zif-8) baicalin loaded metal organic framework composite magnetic material (AU- [email
- 添加Zabbix计算类型项目Calculated items
- 7-19 check denomination (solve binary linear equation)
- QT learning 24 layout manager (III)
猜你喜欢

concat和concat_ws()区别及group_concat()和repeat()函数的使用

FPGA测试方法以Mentor工具为例

Fabric. JS document

Metal organic framework (MOFs) antitumor drug carrier | pcn-223 loaded with metronidazole | uio-66 loaded with ciprofloxacin hydrochloride(

Exercise 10-1 judge the three digits that meet the conditions
[email protected] (FE) | glycyrrhetinic acid modified metal organ"/>Formation of mil-100 (FE) coated small molecule aspirin [email protected] (FE) | glycyrrhetinic acid modified metal organ

7-11 calculation of residential water charges by sections

Comprehensive evaluation of good-looking, easy-to-use and powerful handwriting note taking software: notability, goodnotes, marginnote, handwriting, notes writers, collanote, collanote, prodrafts, not

QT learning 22 layout manager (I)

Concat and concat_ Ws() differences and groups_ Use of concat() and repeat() functions
随机推荐
JS shift operators (< <,> > and > > >)
Selenium browser (1)
Raft agreement
Comprehensive evaluation of good-looking, easy-to-use and powerful handwriting note taking software: notability, goodnotes, marginnote, handwriting, notes writers, collanote, collanote, prodrafts, not
js 2023. String pair equal to the target string after connection
Webpage connection database ~ simple implementation of addition, deletion, modification and query complete code
JS download files through URL links
Scroll detection, so that the content in the lower right corner is not displayed at the top of the page, but is displayed as the mouse slides
7-7 12-24 hour system
JVM runtime data area
6-9 statistics of single digits (15 points)
QT learning 20 standard dialog box in QT (middle)
Exercise 10-2 recursive factorial sum
Cross linked cyclodextrin metal organic framework loaded methotrexate slow-release particles | metal organic porous material uio-66 loaded with flavonoid glycosides | Qiyue
Uio-66-cooh loaded bendamostine | hydroxyapatite (HA) coated MIL-53 (FE) nanoparticles | baicalin loaded manganese based metal organic skeleton material
Vite project commissioning
concat和concat_ws()区别及group_concat()和repeat()函数的使用
JVM class loading
How to delete an attribute or method of an object
C language,%d% Difference between 2D%2d%02d