Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. float a;
  6. float b;
  7. float c;
  8. bool czyA,czyB,czyC;
  9. cout << "Podaj pierwsza liczbe rzeczywista =";
  10. cin >> a;
  11. czyA=cin.good();
  12. cin.clear();
  13. cin.sync();
  14.  
  15.  
  16. cout << "Podaj druga liczbe rzeczywista: =";
  17. cin >> b;
  18. czyB=cin.good();
  19. cin.clear();
  20. cin.sync();
  21.  
  22. cout << "Podaj trzecia liczbe rzeczywista: =";
  23. cin >> c;
  24. czyC=cin.good();
  25. cin.clear();
  26. cin.sync();
  27.  
  28.  
  29. cout << "Liczba a = " << a << " czy udalo sie:"<<czyA<< endl;
  30. cout << "Liczba b = " << b << " czy udalo sie:"<<czyB<<endl;
  31. cout << "Liczba c = " << c << " czy udalo sie:"<<czyC<<endl;
  32.  
  33. return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement