• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu

Q&A Discussões

When I enter two numbers the sum comes.. but when I input character as yes not y... Then it goes into an infinite loop... can anyone explain why? int a,b; char ch; do { cout<<"Enter two numbers: "; cin>>a>>b; cout<<"The sum is "<<a+b <<"\nDo you want to try again (y/n): "; cin>>ch; }while(ch=='Y'||ch=='y');
c++
0 Voto
2 Respostas
10th Oct 2016, 1:14 PM
Soutik
Soutik - avatar
< Anterior1...34Próximo >
Quente hoje
Hello can anyone help me to learn gdscript
0 Votes
What coding language should i use to make a custom coding language?
0 Votes
Anyone Learning Godot?
1 Votes
hello world i need help
2 Votes
Any easy game ideas for beginners?
0 Votes
Which is more important CSS vs HTML vs JS?
1 Votes
How many courses are there on Sololearn
1 Votes
hi
1 Votes
Which databases are the best at injecting dynamic data within websites, and how can you achieve it?
0 Votes
How to increase My Level is SoloLearn ?
0 Votes