Mam problem z pętlą do... while. Gdy podaje do strumienia wejścia literę pętla podaje argument wypisując tylko cout<< "Podaj liczbe:" <<endl; nie bierze pod uwagę argumentu cin >> liczba;
#include <iostream>
using namespace std;
int main()
{
float liczba;
do
{
cout<< "Podaj liczbe:" <<endl;
cin >> liczba;
if(cin.good())
cout<< "\nPodana liczba to:\t" << liczba <<endl;
}
while(cin.fail());
return 0 ;
}