• 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...34Successivo >
Popolare oggi
Guys I don't know anything about cooding who can help me pls
1 Votes
Decorators in python.
2 Votes
Coding for Cybersecurity
1 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
Please click me
0 Votes
Salut tout le monde
1 Votes
How can i isntall modules
1 Votes
Unity's loading time?
4 Votes