Page 1 of 1

Write a program that ask user for a string of length 10, then count and print the number of character C in this string,

Posted: Sun May 15, 2022 8:20 am
by answerhappygod
Write A Program That Ask User For A String Of Length 10 Then Count And Print The Number Of Character C In This String 1
Write A Program That Ask User For A String Of Length 10 Then Count And Print The Number Of Character C In This String 1 (54.01 KiB) Viewed 63 times
Write a program that ask user for a string of length 10, then count and print the number of character C in this string, ignore case. ( Ex: input: Coco Ciao! output: 3 (3 C's) Write a function called allCapital that takes a string variable and update all character to capital letter in the string. Ex: int main(){ string st = "Hi! I love race car."; allCapital(st); cout << st << endl; //print out: HI! I LOVE RACE CAR. return 0; }