Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- float a,b,c;
- int main()
- {
- cout << "podaj dolny kraniec przedzialu: " << endl;
- cin >> a;
- cout << "podaj gorny kraniec przedzialu: " << endl;
- cin >> b;
- cout << "podaj liczbe: " << endl;
- cin >> c;
- if (c >= a && c <= b) cout << "liczba znajduje sie w przedziale" << endl;
- else cout << "liczba nie znajduje sie w przedziale" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment