Count The Letters In A String | C Programming Example

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thank you very much 🎉🎉 this was really helpful

kitsomoshala
Автор

You sir helped me a great deal!
Thank you!

ZiggyTheStarman
Автор

Hello, if you could help me out with this code it would mean a lot. The question is -
You are still conducting linguistic research! This time, you'd like to write a program to find out how many letters occur multiple times in a given word. Your program should read a word from the input and then sort the letters of the word alphabetically (by their ASCII codes). Next, your program should iterate through the letters of the word and compare each letter with the one following it. If these equal each other, you increase a counter by 1, making sure to then skip ahead far enough so that letters that occur more than twice are not counted again. You may assume that the word you read from the input has no more than 50 letters, and that the word is all lowercase.

rezuwankabir
Автор

Thank you, but I have a quesiton. Is there a way to write a lettercounter program such as this but to exclude string.h and ctype.h libraries out of the program? Like for instance, using the while, for and if functions?

wulja
Автор

Hey, I have a question hogy can I count words witouth special characters and numbers. For example the number is full that dosen't count as a word.

heurek
Автор

How do we count words only without counting the space between them?

builder
Автор

Bro can I ask u something
I want the same Idea but in c++ can u help me plz

wael_varlim
Автор

but this does not work if we are given a string inside a variable

adriancorrochano
Автор

What if a want to count a specif letter ?

ahmedkahie
Автор

For example I only want to count the t in the string

ahmedkahie
join shbcf.ru