Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урокОбсуждения
Tic-Tac-Toe Java Two Players
0 голосов
1 ответIssue generating ASCII characters
0 голосов
2 ответовi am getting error anyone can help
0 голосов
5 ответовPlease explain.
0 голосов
2 ответовWhat is the code for this?
1 голос
1 ответBool function problem
1 голос
1 ответ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 голосов
4 ответовWhy this code has no output?
0 голосов
1 ответ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');
0 голосов
2 ответовWhy not working
-4 голосов
4 ответовАктуальное сегодня
Media on HTML
0 Votes
Code Playground
0 Votes
xampp
0 Votes
Is Sololearn better or Mimo.org?
1 Votes
How to solve this
1 Votes
Editor HTML
0 Votes