Q&A Discussões
Python question
0 Voto
1 RespostaPlease explain.
0 Voto
2 RespostasWhen 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 Voto
4 RespostasNested list in python
0 Voto
2 RespostasDynamic DataType
1 Voto
1 RespostaCode help
0 Voto
1 RespostaYou shall write a program that reads, from standard input, an arbitrary number of case-insensitive card descriptions, the totality of which shall be considered a hand. When standard input is exhausted, the program shall print one line to standard output describing the value of the hand. The program shall generate no other output.
0 Voto
3 RespostasQuente hoje
HTML
1 Votes
Formating in python
0 Votes
Could you ple ase help me???
0 Votes
What's wrong here?
0 Votes
Header, Main, Footer
0 Votes
Wifi Password
0 Votes
How to grow in sololearn
0 Votes