Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <cmath>
- using namespace std;
- void sign();
- int main() {
- setlocale(LC_ALL, "russian");
- sign();
- }
- void sign() {
- float a;
- cin >> a;
- if (a > 0) cout << "Знак +\n";
- if (a == 0) cout << "Число равно 0\n";
- if (a < 0) cout << "Знак -\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement