Advertisement
luishh

Untitled

Aug 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <locale.h>
  3. using namespace std;
  4. int main (){
  5.     char s,sair;
  6.     string n;
  7.     int i,m,f;
  8.  
  9.       cout<<"Deseja cadastrar o cliente? sim (s) ou nao (n)"<<endl;
  10.       cin>>sair;
  11.       do {
  12.       cout<<"Informe o sexo do cliente feminino(f) ou masculino (m)"<<endl;
  13.       cin>>s;
  14.       if (s==m)
  15.         m++;
  16.       else
  17.         f++;
  18.       cout<<"Informe o nome do cliente"<<endl;
  19.       cin>>n;
  20.       cout<<"Informe a idade do cliente"<<endl;
  21.       cin>>i;
  22.     } while (sair==s);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement