We had a 20 minute seatwork, and nobody solved this riddle:
Write a source code in C language that asks a user to input a sentence, then (the program) displays the total number of letter
" a " on that particular sentence.
I believe its the lowercase letter "a"..
---
Had I solved it, I would have got 100% on my recitation...
My idea was to treat the character as an integer then count them all,.. but ??
Does that make sense ?? How would I have coded that ??
We should all stick on the <stdio.h> library.. (that's what our Instructor told us) ...
Any suggestions or Codes to this matter ??



LinkBack URL
About LinkBacks


