use c++ only, while-loop and for-loop
please do not use void(print) as I have not learned that, anexample of what I mean with that attached under the question.
#include<iostream>#include<iomanip>using namespace std;void print(int n){ for(int i = 0;i<n;i++){ cout<<“* “; } cout<<endl;}int main(){ int m = 0, f = 0; string s; cout<<“Enter a group of genders: “; cin>>s; for(int i = 0;i<s.length();i++){ if(s[i]==’m’
OR
OR