Showing posts with label contorizarea caracterelor. Show all posts
Showing posts with label contorizarea caracterelor. Show all posts

Wednesday, November 11, 2015

Limbajul C. Contorizarea caracterelor

O problema simpla de C procedural din cursul Cork.

Enuntul:

"2. Write a program to keep count of the occurrence of a user specified character in a stream of characters of known length ( e.g. 50 characters ) input from the keyboard. Compare this to the total number of characters input when ignoring all but alphabetic characters."

Codul: