F&A Diskussionen
When I enter two numbers the sum is displayed.. 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');
0 Stimmen
4 Antwortenhonestly, i have never dealt with any prog language before...i'm 22(aged enough to be confused, huh!)...trust me guys, i'm trying to know where exactly should i start to, things seem to be tough and above my head...u can tell me which way u hav passed up to now..i'll appreciate, thanks( if u wanna ask me, welcome)
0 Stimmen
4 AntwortenHeute heiß
Html
2 Votes
Detach thread exception
1 Votes
Certificate use
1 Votes
Need a tutor on Java
0 Votes
Error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row:
1 Votes
PYTHON New bee
0 Votes