![]() |
C programming Count uppercase letters in a sentence
I don't know where to start or how to write the program I need some help I am trying to program an uppercase character is an character whose ASCII value is between 65(A) and 90(Z). I need to write a program that prompts the user to enter a string from the keyboard and will count the number uppercase character and replace each uppercase character by the corresponding lowercase character.
|
Quote:
PHP Code:
|
Actually, it would be
for(i=0;i<strlen(string);i++) not for(i=0;i<string[i];i++) |
Quote:
Code:
i<string[i] Code:
string[i] But yea, WW's method is better. Use strlen. |
All times are GMT -6. The time now is 09:33 AM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.