35) C PROGRAM TO FIND THE FREQUENCY OR COUNT THE NUMBER OF CHARACTER IN STRING.
LOGIC:- First enter a string, Now enter the character which we count set initially count to 0.Running a loop when character is found(i.e character==find character)increase the count by 1.Note for taking input using gets and getchar for string and character respectively.
EXAMPLE:-
"""SHARE IT IN YOUR FRIENDS""""
LOGIC:- First enter a string, Now enter the character which we count set initially count to 0.Running a loop when character is found(i.e character==find character)increase the count by 1.Note for taking input using gets and getchar for string and character respectively.
EXAMPLE:-
"""SHARE IT IN YOUR FRIENDS""""
Comments
Post a Comment