• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu

Sesiones de PyR

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');
c++
0 Votos
2 Respuestas
10th Oct 2016, 1:14 PM
Soutik
Soutik - avatar
< Anterior1...34Siguiente >
En tendencia hoy
Need a personal tutor
1 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Fix code
0 Votes
..
1 Votes
How can I turn my .py files to .exe files?
1 Votes
Software to write and run codes
1 Votes
How Much RAM is Required for Object Detection Project
0 Votes
Add lua
0 Votes
How to learn C++ and how long does it take
1 Votes
Summary please??
0 Votes