fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6.  
  7. string x;
  8.  
  9. cout<<"Digite 'bebida' "<<endl;
  10. cin>>x;
  11.  
  12. if(x == "bebida"){
  13. cout<<"Esta certo"<<endl;
  14. }
  15. else{
  16. cout<<"Esta errado"<<endl;
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0s 15240KB
stdin
bebida
stdout
Digite 'bebida' 
Esta certo