Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuiteDiscussions Q&R
can someone explain?
0 Vote
4 RéponsesIntroduce Code moderation
8 Votes
3 RéponsesWhen 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 Vote
4 RéponsesWhen 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');
0 Vote
2 RéponsesAujourd'hui en vedette
What’s wrong with this???
5 Votes
What's wrong with these codes?
1 Votes
What can i do with bits
4 Votes
Guys, it’s about streak
1 Votes
Arrays
0 Votes
html
3 Votes
I don't get it
0 Votes
Bulk email sender?
0 Votes
Wrong HTML Code check
0 Votes