Basic Knowledge of a string.
you have given a string and you should calculate the s present in the string. If you are able to calculate s then its pretty good
- First line will contain string N, shows string of input entered.
- For each testcase, output in a single line answer given the total number of s in given string;
In this, a problem you have to create a program in which you should enter the number containing five or not your choice and output should give number of s present in input.
In this, you have to write code like this first, you have to write string then write for loop till the end of the string then write if statement with condition that for each element in string check s is present or not if yes increment variable otherwise not then, finally print the variable.