Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- string ta(string s) {
- char zn=' ';
- string pom="";
- for(int i=0;i<s.size();i++)
- {
- if(s[i]!='A')
- zn='*';
- else
- zn='A';
- pom=pom+zn;
- }
- return pom;
- }
- int main()
- {
- cout<<ta("TGACCCA")<<endl;
- cout<<ta("TGATATTCGATGTGAAAAA");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement