Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void singnX (float x) {
- if (x > 0)
- cout << "sing" << x << "= 1" << " Число положительно" << endl;
- if (x == 0)
- cout << "sing" << x << "= 0" << " Число неотрицательно"<< endl;
- if (x < 0)
- cout << "sing" << x << "= -1" << " Число отрицательно"<< endl; }
- int main()
- {
- setlocale(LC_ALL, "Russian");
- int x;
- cout << "Введите x";
- cin >> x;
- singnX(x);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement