Обсуждения
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 ответовАктуальное сегодня
Time up code for data revision
0 Votes
Web vs python
1 Votes
Best Python Calculator Code
1 Votes
I want to learn why this error occurs in "while loop" function of Pythone.Can someone explain to me?
1 Votes
Animation
1 Votes
While or for loop
0 Votes
how to import in pygame
0 Votes