Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  sd
Language: C/C++
Code:
#include <iostream>
#include <string>

using namespace std;
    int ile(string s,char z)
     {
    int ile = 0;
    for (int i = 0; i < s.size(); i++)
        if (s[i] == z)
        ile++;

        return ile;
    }

int main()
{

ile("TCTAAAGATATCGGG",'G');
cout <<"Wynik: " <<ile;
    return 0;
}
          
          
Comments: