Обсуждения
Help to correct a mistake
0 голосов
3 ответов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 ответовАктуальное сегодня
Help please?
4 Votes
Ejercicio Pytho
0 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
Game development
0 Votes