Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to output the number of letters in C language

Shulou Source: shulou.com Published: 2022-05-31 14:30:16 10月03日 Update

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]

Tags: Number letter output content language character string input article knowledge article value most that is more format step knowledge point space answer Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Microsoft Apple Shulou Technology vpn