Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to output the number of letters in C language

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

Most people do not understand the knowledge points of this article "how to output the number of letters in c language", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this article "how to output the number of letters in c language".

1. Topic description

Enter a string and count the number of letters in it.

two。 Format and sample

Input

A string with no spaces (less than 100 in length)

Output

The number of letters in a string

Sample input

124lfdk54AIEJ92854&%$GJ

Sample output

ten

3. Reference answer 1#include

2int main ()

3 {

4char s [101]

5int iQuery summons 0

6gets (s)

7for (iFix [I]; iTunes +)

8 {

9if (s [I] > = 'Avalanche & s [I]) =' averse & s [I]

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 274

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report