JakubKaczmarek_123

zadanie 19

Nov 13th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. float a,b,c;
  5.  
  6. int main()
  7. {
  8.     cout << "podaj dolny kraniec przedzialu: " << endl;
  9.     cin >> a;
  10.     cout << "podaj gorny kraniec przedzialu: " << endl;
  11.     cin >> b;
  12.     cout << "podaj liczbe: " << endl;
  13.     cin >> c;
  14.     if (c >= a && c <= b) cout << "liczba znajduje sie w przedziale" << endl;
  15.     else cout << "liczba nie znajduje sie w przedziale" << endl;
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment