Kurse
AnmeldenBeginne KI zu lernen
Kurse
AnmeldenBeginne KI zu lernen

F&A Diskussionen

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 Stimmen
2 Antworten
10th Oct 2016, 1:14 PM
Soutik
Soutik - avatar
< Vorherige1...34Weiter >
Heute heiß
Audio adding
1 Votes
playground input
0 Votes
What is problem in this code
0 Votes
Software developer
0 Votes
This Program Does Something Weird. Can You Explain Why?
1 Votes
How I can use div
0 Votes
Asking for final year project ideas!
1 Votes
TIPS From Veterans
1 Votes
Html issue
0 Votes
Cybersecurity jobs without degree
0 Votes