• Corsi
  • Compilatore di codice
  • Discuti
  • Prezzi
  • Squadre
Menu

Discussioni Q&A

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 Voti
2 Risposte
10th Oct 2016, 1:14 PM
Soutik
Soutik - avatar
< Precedente1...67Successivo >
Popolare oggi
debate which is better
6 Votes
Text editor
0 Votes
Debugging issue?
0 Votes
Which one should I start with to learn python. The developer path or both seperate beginner and intermediate python?
0 Votes
Is anyone else having this issue?
2 Votes
how to view only application
0 Votes
Arduino
2 Votes
If very confusing
0 Votes
Mobile app not working sometimes
0 Votes
Scraping
0 Votes