Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <locale.h>
- using namespace std;
- int main (){
- char s,sair;
- string n;
- int i,m,f;
- cout<<"Deseja cadastrar o cliente? sim (s) ou nao (n)"<<endl;
- cin>>sair;
- do {
- cout<<"Informe o sexo do cliente feminino(f) ou masculino (m)"<<endl;
- cin>>s;
- if (s==m)
- m++;
- else
- f++;
- cout<<"Informe o nome do cliente"<<endl;
- cin>>n;
- cout<<"Informe a idade do cliente"<<endl;
- cin>>i;
- } while (sair==s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement