Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void function(int);
- int main()
- {
- int a,b;
- cout<<"a=:";
- cin>>a;
- function(a);
- system("pause");
- return 0;
- }
- void function(int a)
- {
- if(a>0){
- cout<<"positive "<<endl;
- } else {
- cout<<"negative "<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement