Use C Loop Loop Please Use Void Print Learned Example Mean Attached Question Include Inclu Q37281318

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.

(while-loop and for-loop) Enter a group of genders: mmmFFMMfff 5.

#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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.